2013-05-31 14:39:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2013/05/31 12:42:04 wiz Exp $
|
2001-03-27 21:14:44 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= safetynet-1.15
|
2013-05-31 14:39:57 +02:00
|
|
|
PKGREVISION= 2
|
2001-03-27 21:14:44 +02:00
|
|
|
CATEGORIES= sysutils
|
2011-03-18 21:54:44 +01:00
|
|
|
MASTER_SITES= # http://www.unixpimps.org/safetynet/
|
2001-03-27 21:14:44 +02:00
|
|
|
|
2010-02-26 11:28:30 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-03-27 21:14:44 +02:00
|
|
|
HOMEPAGE= http://www.unixpimps.org/safetynet/
|
2003-07-21 19:24:16 +02:00
|
|
|
COMMENT= Safetynet is a perl script intended to monitor system services
|
2001-03-27 21:14:44 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2001-03-27 21:14:44 +02:00
|
|
|
NO_BUILD= YES
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2001-03-27 21:14:44 +02:00
|
|
|
|
2009-02-16 19:44:40 +01:00
|
|
|
INSTALLATION_DIRS= bin etc share/doc/safetynet
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2001-03-27 21:14:44 +02:00
|
|
|
post-patch:
|
|
|
|
${SED} -e "s,/etc/safetynet.conf,${PREFIX}/etc/safetynet.conf,g" \
|
|
|
|
-e "s,/bin/mail,/usr/bin/mail,g" \
|
|
|
|
-e "s,ps -Af,ps ax,g" \
|
|
|
|
-e "s,/usr/bin/perl,${LOCALBASE}/bin/perl,g" \
|
|
|
|
${WRKSRC}/safetynet > ${WRKSRC}/safetynet.done
|
|
|
|
${MV} -f ${WRKSRC}/safetynet.done ${WRKSRC}/safetynet
|
|
|
|
${SED} -e "s,/usr/local/apache/bin/apachectl,${LOCALBASE}/sbin/apachectl,g" \
|
|
|
|
-e "s,/usr/local,${PREFIX},g" \
|
|
|
|
${WRKSRC}/safetynet.conf > ${WRKSRC}/safetynet.conf.done
|
|
|
|
${MV} ${WRKSRC}/safetynet.conf.done ${WRKSRC}/safetynet.conf
|
|
|
|
|
|
|
|
do-install:
|
2009-02-16 19:44:40 +01:00
|
|
|
${INSTALL_SCRIPT} -m 700 ${WRKSRC}/safetynet ${DESTDIR}${PREFIX}/bin/safetynet
|
|
|
|
${INSTALL_DATA} -m 600 ${WRKSRC}/safetynet.conf ${DESTDIR}${PREFIX}/etc/safetynet.conf.sample
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/safetynet/README
|
2001-03-27 21:14:44 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|