diff options
author | Jay Freeman <saurik@saurik.com> | 2009-04-08 21:42:41 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-04-08 21:42:41 +0000 |
commit | 960f0c8bd926f96246a6567ece6f9851a2b22b76 (patch) | |
tree | b23b7c9796b9d2b5f10a0845e872e81f0c997ae1 /data/system-cmds/make.sh | |
parent | 6774b86da56c1713247148e83d44630675828dee (diff) |
Upgraded system-cmds to use PAM (for login).
git-svn-id: http://svn.telesphoreo.org/trunk@566 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/system-cmds/make.sh')
-rw-r--r-- | data/system-cmds/make.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/data/system-cmds/make.sh b/data/system-cmds/make.sh index 8bc38359b..a66246fb5 100644 --- a/data/system-cmds/make.sh +++ b/data/system-cmds/make.sh @@ -10,16 +10,20 @@ cd .. ${PKG_TARG}-gcc -o passwd passwd.tproj/!(od_passwd).c -I. -DTARGET_OS_EMBEDDED # XXX: ${PKG_TARG}-gcc -o chpass chpass.tproj/*.c -I. -Ipwd_mkdb.tproj -Ivipw.tproj ${PKG_TARG}-gcc -o dmesg dmesg.tproj/*.c -I. +${PKG_TARG}-gcc -o sysctl sysctl.tproj/sysctl.c -I. ${PKG_TARG}-gcc -o arch arch.tproj/*.m -I. -framework CoreFoundation -framework Foundation -lobjc cp -va "${PKG_DATA}"/kextmanager* . -# XXX: shutdown -for tproj in ac accton getconf getty hostinfo iostat login mkfile nvram reboot sync sysctl update vifs vipw zdump zic zprint; do +# XXX: kvm_mkdb shutdown +for tproj in ac accton getconf getty hostinfo iostat login mkfile nvram pwd_mkdb reboot sync update vifs vipw zdump zic zprint; do cflags= - case ${tproj} in (shutdown) - cflags="${cflags} -lbsm" - ;; esac + case ${tproj} in + (kvm_mkdb) cflags="${cflags} -DBSD_KERNEL_PRIVATE";; + (login) cflags="${cflags} -lpam -DUSE_PAM";; + (pwd_mkdb) cflags="${cflags} -D_PW_NAME_LEN=MAXLOGNAME -D_PW_YPTOKEN=\"__YP!\"";; + (shutdown) cflags="${cflags} -lbsm";; + esac echo "${tproj}" ${PKG_TARG}-gcc -o "${tproj}" "${tproj}.tproj"/*.c -I. -D'__FBSDID(x)=' -DTARGET_OS_EMBEDDED -framework CoreFoundation -framework IOKit kextmanagerUser.c ${cflags} @@ -40,4 +44,4 @@ pkg: cp -a arch getconf getty hostinfo login passwd zprint /usr/bin pkg: ln -s chpass /usr/bin/chfn pkg: ln -s chpass /usr/bin/chsh pkg: ln -s less /usr/bin/more -pkg: cp -a ac accton iostat mkfile nvram sysctl update vifs vipw zdump zic /usr/sbin +pkg: cp -a ac accton iostat mkfile nvram pwd_mkdb sysctl update vifs vipw zdump zic /usr/sbin |