Please reserve UID/GID for bacula port

LarsKöller Lars at koellers.net
Sat Jan 10 13:42:51 PST 2004


Hi all,

In reply to Mathieu Arnold who wrote:

>Maybe a simple pkg-{,de}install like this :
>
>pkg-install :
>PATH=/bin:/usr/bin:/usr/sbin
>
>case "$2" in
>"POST-INSTALL")
>        echo "# Bacula port start
>bacula-dir      9101/tcp   #Bacula director daemon
>bacula-fd       9102/tcp   #Bacula file daemon
>bacula-sd       9103/tcp   #Bacula storage daemon
># Bacule port end" >> /etc/services
>
>pkg-deinstall :
>PATH=/bin:/usr/bin:/usr/sbin
>TMPFILE=/tmp/services-$RANDOM-$$
>
>case "$2" in
>"DEINSTALL")
>        sed -e '/# Bacula port start/,/# Bacule port end/{' \
>            -e 'd' \
>            -e '}' /etc/services > $TMPFILE
>        mv -f $TMPFILE /etc/services
>        ;;
>esac
>
>and add a :
>post-install:
>                @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME}
>POST-INSTALL
>
>to the Makefile.

I like this idea. I will try to include this in the make plus a check 
if the lines are already in /etc/services.

Thanks to all for the replys 

Lars
  
-- 
Lars Köller
E-Mail: lars at koellers.net (LKoeller at FreeBSD.ORG)
-------- FreeBSD, was sonst? ---- http://www.de.freebsd.org --------




More information about the freebsd-ports mailing list