Hi
I have a make file that has a few recipes like
inst-hufpuf: tmpDir tmpDir/rootdir-hufpuf
@true
inst-multimedia: tmpDir tmpDir/rootdir-multimedia
@true
inst-backup: tmpDir tmpDir/rootdir-backup
@true
inst-laptop: tmpDir tmpDir/rootdir-laptop
@true
I am guessing I can write this more efficiently, but not sure how
I also have some that looks like
# laptop definition
tmpDir/rootdir-laptop: SERVERNAME=laptop.samad.com.au
tmpDir/rootdir-laptop: SSERVERNAME=laptop
tmpDir/rootdir-laptop: URI=ldapi://%2fvar%2frun%2fldapi
tmpDir/rootdir-laptop: FILTERHOST=laptop.samad.com.au
tmpDir/rootdir-laptop: FILTERSITE=samad.com.au
tmpDir/rootdir-laptop:
CERTNAME=bGRhcC5sYXB0b3Auc2FtYWQuY29tLmF1OmNhQHNhbWFkLmNvbS5hdTo6bGRhcDpBLiBTYW1hZCBQdHkgTHRkOlN5ZG5leTpOU1c6QVU=
tmpDir/rootdir-laptop: processTemplate.pl template/etc/libnss-ldap.conf
template/etc/pam_ldap.conf template/etc/ldap/ldap.conf Makefile
template/etc/ldap/samad.com.au-db.SLAVE
template/etc/ldap/samad.com.au-encryption.SERVER
./processTemplate.pl -vm2 "$@" "$(SERVERNAME)" "$(SSERVERNAME)"
"$(URI)" "$(FILTERHOST)" "$(FILTERSITE)" "$(CERTNAME)"
# slave definition
tmpDir/rootdir-slave: SERVERNAME=slave.samad.com.au
tmpDir/rootdir-slave: SSERVERNAME=slave
tmpDir/rootdir-slave: URI=ldaps://ldap.hme1.samad.com.au:636
ldaps://ldap.hme2.samad.com.au:636
tmpDir/rootdir-slave: FILTERHOST=slave.samad.com.au
tmpDir/rootdir-slave: FILTERSITE=samad.com.au
tmpDir/rootdir-slave: CERTNAME=
tmpDir/rootdir-slave: processTemplate.pl template/etc/libnss-ldap.conf
template/etc/pam_ldap.conf template/etc/ldap/ldap.conf Makefile
rootdir/etc/pam.d rootdir/etc/pam.d/common-account
rootdir/etc/pam.d/common-auth rootdir/etc/pam.d/common-password
rootdir/etc/pam.d/common-session
./processTemplate.pl -vs "$@" "$(SERVERNAME)" "$(SSERVERNAME)"
"$(URI)" "$(FILTERHOST)" "$(FILTERSITE)" "$(CERTNAME)"
@cp -r rootdir/etc/pam.d "$@/etc/"
is there some way to compress this as well ?
--
"There's not going to be enough people in the system to take advantage of
people like me."
- George W. Bush
06/09/2000
Wilton, CN
on the coming Social Security crisis
signature.asc
Description: Digital signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
