Added csc-chsh and csc-chfn to build and install scripts.

This commit is contained in:
Michael Spang 2007-02-18 21:30:46 -05:00
parent 4a4342c8d7
commit c2912751d8
3 changed files with 21 additions and 3 deletions

10
debian/postinst vendored
View File

@ -28,7 +28,15 @@ case "$1" in
fi
if ! dpkg-statoverride --list /usr/bin/ceoquery > /dev/null; then
dpkg-statoverride --add --update $CEO $OFFICE $SUIDALL /usr/bin/ceoquery
dpkg-statoverride --add --update $CEO root $SUIDALL /usr/bin/ceoquery
fi
if ! dpkg-statoverride --list /usr/bin/csc-chsh > /dev/null; then
dpkg-statoverride --add --update $CEO root $SUIDALL /usr/bin/csc-chsh
fi
if ! dpkg-statoverride --list /usr/bin/csc-chfn > /dev/null; then
dpkg-statoverride --add --update $CEO root $SUIDALL /usr/bin/csc-chfn
fi
if [ -f /etc/csc/ldap.cf ] && ! dpkg-statoverride --list /etc/csc/ldap.cf > /dev/null; then

8
debian/postrm vendored
View File

@ -15,6 +15,14 @@ case "$1" in
dpkg-statoverride --remove /usr/bin/ceoquery || true
fi
if dpkg-statoverride --list /usr/bin/csc-chsh > /dev/null; then
dpkg-statoverride --remove /usr/bin/csc-chsh || true
fi
if dpkg-statoverride --list /usr/bin/csc-chfn > /dev/null; then
dpkg-statoverride --remove /usr/bin/csc-chfn || true
fi
if dpkg-statoverride --list /etc/csc/ldap.cf > /dev/null; then
dpkg-statoverride --remove /etc/csc/ldap.cf || true
fi

6
debian/rules vendored
View File

@ -9,6 +9,8 @@ build-stamp:
$(CC) -DFULL_PATH='"/usr/lib/csc/ceo"' -o build/ceo misc/setuid-prog.c
$(CC) -DFULL_PATH='"/usr/lib/csc/addhomedir"' -o build/addhomedir misc/setuid-prog.c
$(CC) -DFULL_PATH='"/usr/lib/csc/ceoquery"' -o build/ceoquery misc/setuid-prog.c
$(CC) -DFULL_PATH='"/usr/lib/csc/csc-chfn"' -o build/csc-chfn misc/setuid-prog.c
$(CC) -DFULL_PATH='"/usr/lib/csc/csc-chsh"' -o build/csc-chsh misc/setuid-prog.c
touch build-stamp
clean:
@ -29,8 +31,8 @@ install: build
dh_install etc/* etc/csc/
dh_install sql/* usr/share/csc/
dh_install bin/ceo bin/addhomedir bin/ceoquery usr/lib/csc/
dh_install build/ceo build/addhomedir build/ceoquery usr/bin/
dh_install bin/ceo bin/addhomedir bin/ceoquery bin/csc-chsh bin/csc-chfn usr/lib/csc/
dh_install build/ceo build/addhomedir build/ceoquery build/csc-chsh build/csc-chfn usr/bin/
binary-arch: build install
dh_testdir