|
From: Heiko Z. <smi...@us...> - 2004-04-23 20:45:19
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1732/scripts Modified Files: Tag: rel-1-0-patches quagga Log Message: create missing user and usr /var/state/quagga Index: quagga =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/Attic/quagga,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- quagga 22 Apr 2004 18:33:38 -0000 1.1.2.1 +++ quagga 23 Apr 2004 20:45:10 -0000 1.1.2.2 @@ -21,7 +21,7 @@ touch devil-linux-quagga-patches.done bzcat $DL_DIR/src/ht-*-linux-rfc2385.patch.bz2 | patch -p0 || exit 1 fi - ./configure --prefix=/usr --sysconfdir=/etc/zebra --localstatedir=/var --enable-snmp \ + ./configure --prefix=/usr --sysconfdir=/etc/zebra --localstatedir=/var/state/quagga --enable-snmp \ --enable-netlink --enable-vtysh --enable-linux-rfc2385 || exit 1 make $PMAKE || exit 1 strip_debug @@ -30,11 +30,19 @@ install ) if [ "$CONFIG_QUAGGA" = "y" ]; then - rm -rf $WORKDIR/tmp || exit 1 + groupadd -g 62 quagga || exit 1 + useradd -u 62 -g quagga -s /bin/false quagga || exit 1 + + rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp copy_files $WORKDIR/tmp/usr $CDDIR || exit 1 + + mkdir -p $CDDIR/var/state/quagga || exit 1 + chown quagga.quagga $CDDIR/var/state/quagga || exit 1 + chmod 770 $CDDIR/var/state/quagga || exit 1 + copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1 cp $MYDIR/scripts/quagga $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/bgpd $ETCDIR/etc/init.d || exit 1 |