`# $Id: Makefile.host,v 1.11 2012/12/14 18:04:17 ksb Exp $ # Platform installation recipe for libexec scripts. Note that we *must* # be run after the policy is updated, and we should be passed LIB= or # DESTDIR= so we can find the installed policy. We also depend on the # ksb version of glob(1), greaterthan or equal to 1.8. 'changequote([,])dnl [O=` C=' ]changequote(`,')dnl ` TOP=/usr/local LIB=${DESTDIR}${TOP}/lib/op LIBEXEC=${DESTDIR}${TOP}/libexec/op SCRIPTS= acct-mod agent-add agent-start agent-stop alias-mod any-dtr \ any-script auth-user cms-admin-iwidmap cms-chmod cms-chowngrp \ cms-grdmap cms-mysql cms-od5ctl cms-odctl cms-tradosctl cms-tsctl \ cms-tsindexctl cms-tssearchctl cps-config \ diskset dtr.sh eap_notrace eap_trace \ ebp-chown eclaims-cleanup enterprisechat \ fsm-script ftp_notrace ftp_trace fxn fxn2 fxnet-script \ gateway-script globCheck gsp-cleanlog gsp-tcpdrop gsp-tcpkill \ hbxoffice help hup-sendmail imap-repair \ insight-crontab.ksh insight-switch-tns.ksh insight-tm.ksh iplanet_wl \ ivsvcs-crontab.ksh ivsvcs-tm.ksh iw.local.ksh iwod-smfctrl iwproxy.ksh \ jrcmd kickme.ksh kill-dtr kill_ftpd kill_proc lvm_mount lvm_umount \ make-load-tar make-load-zero make_dbm.sh measfsm-script msrcsync.ksh \ mvlogs netlabel-kludge newlog-wind oadrmarketviewfile.sh olabop.sh \ otxtn_notrace otxtn_trace ovo-cleancoda ovo-cleanperf ovo-cleantmp \ ovo-rmtmpls ovo-smfctrl perfstat pie.sh rm_trace robot-links run-gpm \ safe-gcore safe-snoop safe-strace safe-tcpdump safe-traceroute \ safe-truss scode searchcmd.sh ssh-imap sso_port_nat start-logger \ start-port443 start_ipt start_webserv stop_ipt stop_webserv sudomap \ sux symcli-exec sync-flttrn sync-me.ksh sync-meta.ksh \ tar-x teamsitekick teamsitequeue tibemsadmin tibemsadmin-setpass \ tip_fxn tip_notrace tip_trace toa-steal toggle_ipt_trace.sh \ tomcat-fdfix truncate \ vcs-autoenable vcs-cat vcs-display vcs-evacuate vcs-failover \ vcs-status \ wfcliovation wlcamyop.sh wlcaopinit.sh wlcastartmanaged \ wlcauser wm wss xauth check-pfc-imap-usage MAN= OTHER= libexec.html Distfile.ignore Default.mk SOURCE= Makefile ${OTHER} ${MAN} ${DATA} GEN= # When we cannot find a file, the last xapply will exit non-zero. # We could use mk to extract the install command from the script, yes! all: glob -s ${LIB}/\* | grep -v OLD |\ MK=-sl0 xapply -f ${C}mk -amRequired -t ${O}pwd${O}/Default.mk %1${C} - |\ oue Tee /dev/ttty |\ xapply -e S=%[1/$$] -f ${C}set -x; if ! [ -f $$S ] ; then echo "Missing script $$S"; exit 66; fi%0${C} - clean: FRC rm -f ${GEN} # As you remove rules you might run this to clean out older scripts, # then run purge on the OLD dir, after a respectable interval. deinstall: ( glob -s ${LIBEXEC}/\* | grep -v OLD ;\ glob -s ${LIB}/\* | grep -v OLD |\ MK=-sl0 xapply -f ${C}mk -amRequired -t ${O}pwd${O}/Default.mk %1${C} - |\ xapply -f ${C}[ -f "${LIBEXEC}/%1" ] && echo %1${C} |\ oue -dv )|\ xapply -vf ${C}install -R %1${C} - install: glob -s ${LIB}/\* | grep -v OLD |\ MK=-sl0 xapply -f ${C}mk -amRequired -t ${O}pwd${O}/Default.mk %1${C} - |\ oue |\ MK=-sl0 LIBEXEC=${LIBEXEC} xapply -f ${C}set -x;mk -mInstall -t ${O}pwd${O}/Default.mk %[1/$$]${C} - source: ${SOURCE} FRC: 'dnl