################################################################################ # # # ext|scripts (C) 2000-2004 Pavel Novikov (pavel@ext.by) # # # ################################################################################ ################################################################################ # # This one makes "jps(1)" and then maps pids to jails. # PFX?=/usr/local PKG=jps MAN_SFX=1 MAN_DIR=man/man1 TARGETS=${PKG} ${PKG}.${MAN_SFX}.gz RM=rm CP=cp CM=chmod GZ=gzip INSTALL_BIN=install -C -o root -g wheel -m 555 INSTALL_MAN=install -C -o root -g wheel -m 444 all: ${PKG} ${PKG}: ${RM} -f ${PKG} ${CP} ${PKG}.pl ${PKG} ${CM} 555 ${PKG} ${RM} -f ${PKG}.${MAN_SFX}.gz ${GZ} -c -9 ${PKG}.1 > ${PKG}.${MAN_SFX}.gz ${CM} 444 ${PKG}.${MAN_SFX}.gz clean: ${RM} -rf ${TARGETS} install: all ${INSTALL_BIN} ${PKG} ${PFX}/bin ${INSTALL_MAN} ${PKG}.${MAN_SFX}.gz ${PFX}/${MAN_DIR} deinstall: ${RM} -f ${PFX}/bin/${PKG} ${RM} -f ${PFX}/${MAN_DIR}/${PKG}.${MAN_SFX}.gz