diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-02-01 02:13:15 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-02-01 02:13:15 +0000 |
commit | 219ed0fd18fe7b5722430b46591885f812d72433 (patch) | |
tree | b8511c5f3d39c778e144de4f2a9291966c91b283 /gnu/usr.sbin | |
parent | a0d2144bc89a625f44cead983c107f5f7e99826e (diff) | |
download | FreeBSD-src-219ed0fd18fe7b5722430b46591885f812d72433.zip FreeBSD-src-219ed0fd18fe7b5722430b46591885f812d72433.tar.gz |
Added the yppwupdate script. This is a small shell script that yppasswdd
executes after it finishes updating the raw master.passwd file. The script
is just there to invoke /var/yp/Makefile to build new maps and yppush them.
We could have yppasswdd run /var/yp/Makefile directly, but this allws a bit
more flexibility: the user may decide to run some other commands too.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r-- | gnu/usr.sbin/yppasswdd/Makefile | 7 | ||||
-rw-r--r-- | gnu/usr.sbin/yppasswdd/yppwupdate | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gnu/usr.sbin/yppasswdd/Makefile b/gnu/usr.sbin/yppasswdd/Makefile index 115c217..0688429 100644 --- a/gnu/usr.sbin/yppasswdd/Makefile +++ b/gnu/usr.sbin/yppasswdd/Makefile @@ -1,3 +1,4 @@ +# $Id$ # @(#)Makefile 8.3 (Berkeley) 4/2/94 PROG= yppasswdd @@ -12,5 +13,11 @@ CFLAGS+=-DVERSION=\"0.5\" -DYPLIBDIR=\"/usr/libexec\" -D_GNU_SOURCE BINOWN= bin BINMODE=555 +BINDIR= /usr/sbin + +afterinstall: /usr/libexec/yppwupdate + +/usr/libexec/yppwupdate: yppwupdate + install -c -o bin -g bin -m 555 yppwupdate /usr/libexec/yppwupdate .include <bsd.prog.mk> diff --git a/gnu/usr.sbin/yppasswdd/yppwupdate b/gnu/usr.sbin/yppasswdd/yppwupdate new file mode 100644 index 0000000..77412b0 --- /dev/null +++ b/gnu/usr.sbin/yppasswdd/yppwupdate @@ -0,0 +1,6 @@ +#!/bin/sh +# +# This script is invoked by yppasswdd to update the password +# maps after the master password file has been modified. + +cd /var/yp; make |