`# $Id: Makefile.host,v 1.13 2013/05/17 18:39:52 ksb Exp $ # This platform recipe only knows how to make source and install. TOP=/usr/local LIB=${DESTDIR}${TOP}/lib/op SOURCE= Makefile README ckdsk.cf cvs.cf diag.cf dollaru.cf ecdevmon.cf \ gspadmin.cf hpasmcli.cf ilo.cf ipfw.cf keymaster.cf level2s.cf \ mtpkeys.cf netlint.cf news.cf oracle.cf ovpa.cf probe.cf \ remote.html rms.cf \ sample.cf slist.cf sst.cf storage.cf sybase.cf tfa.cf tuxedo.cf all: clean: FRC rm -f Makefile.bak core errs # The rules below are local site policy, which does nothing by default. # Trap missing Init or Cleanup rules accessed below (before line number 95): # $Init(*): : "trap rules w/o an init method" # $Cleanup(*): : "trap cleanup" # # Each of our files is ignored by the platform Makefile above, we must # choose to remove any files this host has and does not need. We use # the mk-marker "Guard" to test for the inclusion (exit 0) or exclusion # (exit non-zero) of each config file in this directory. Any m4 markup in # a file is consumed (when named file.cf.host) by msrc in the remote push. # # Include this before the for loop to pass a current netgroups list in $NG: # if [ -f /etc/netgroup ]; then NG=$$(sed -n -e "s/#.*//" -e "/^[ ].*/d" -e "s/^[ ]*\([^ ][^ \\]*\).*/\1/p" /etc/netgroup); export NG; else unset NG; fi;\ # Which only helps if netgroups additions should NOT be picked up between # updates from the master source host. And if /etc/netgroup is really the # source of truth on the host (warning: not true for libc5 under Linux). # Otherwise let op do all the netgroups logic at run-time, as ksb always does. install: FRC for f in *.cf ; do \ if mk -smGuard $$f ; then \ cmp -s $$f ${LIB}/$$f || {\ install -cm400 -o root $$f ${LIB}/$$f &&\ mk -tMakefile -smInit ${LIB}/$$f ;\ };\ continue;\ fi ;\ [ ! -f ${LIB}/$$f ] || {\ mk -tMakefile -smCleanup ${LIB}/$$f &&\ install -R ${LIB}/$$f ;\ };\ done source: ${SOURCE} ${SOURCE}: co -q $@ FRC: 'dnl