pkg-descr

Ce logiciel est cense determiner votre bande passante a un raccordement
large bande et envoie les resultats au site http://www.grenouille.com
a des fins de statistiques.

pkg-install

#!/bin/sh
#
# $FreeBSD: ports/french/plgrenouille/pkg-install,v 1.3 2007/01/13 22:57:06 gabor Exp $
#
# Configure plgrenouille.
#

[ $# != 2 ] && exit 1
[ -z "${PKG_PREFIX}" ] && exit 1

PORTNAME=plgrenouille
SPOOL_DIR=/var/spool/${PORTNAME}
SPOOL_MODES=u+rw,go-rw
SPOOL_USER=daemon

case "$2" in
POST-INSTALL)
if [ ! -d ${SPOOL_DIR} ]; then
mkdir -p ${SPOOL_DIR} &&
chmod ${SPOOL_MODES} ${SPOOL_DIR} &&
chown ${SPOOL_USER} ${SPOOL_DIR}
fi
[ -n "${BATCH}" ] && exit 0
[ -f ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh ] &&
sh ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh configure
;;
POST-DEINSTALL)
if [ -d ${SPOOL_DIR} ]; then
rm -rf ${SPOOL_DIR}
fi
;;
esac

exit 0

pkg-plist

@comment $FreeBSD: ports/french/plgrenouille/pkg-plist,v 1.3 2007/01/13 22:57:06 gabor Exp $
@unexec if cmp -s %D/%%CONF_DIR%%/grenouillerc %D/%%CONF_DIR%%/grenouillerc.sample; then rm -f %D/%%CONF_DIR%%/grenouillerc; fi
@unexec %%PREFIX%%/etc/rc.d/plgrenouille.sh stop
%%CONF_DIR%%/grenouillerc.sample
@comment no @exec: see pkg-install/+INSTALL for details.
%%LBIN_DIR%%/plgrenouille
%%SITE_PERL%%/Grenouille/Comm.pm
%%SITE_PERL%%/Grenouille/Config.pm
%%SITE_PERL%%/Grenouille/Log.pm
%%SITE_PERL%%/Grenouille/Numbers.pm
%%SITE_PERL%%/Grenouille/Preferences.pm
%%SITE_PERL%%/Grenouille/Queue.pm
%%SITE_PERL%%/Grenouille/Scheduler.pm
%%SITE_PERL%%/Grenouille/System.pm
%%SITE_PERL%%/Grenouille/Vars.pm
%%SITE_PERL%%/Grenouille/Version.pm
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%SITE_PERL%%/Grenouille