pkgsrc/sysutils/sarah/Makefile
jlam 3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00

41 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2005/07/16 01:19:23 jlam Exp $
DISTNAME= sarah-0.7b
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.conundrum.com/pub/sarah/
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= Syslog automated Rotation and Archive Handler
LICENSE= limited-redistribution
RESTRICTED= "Do not redistribute"
NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
USE_TOOLS+= perl:run
REPLACE_PERL= sarah
NO_BUILD= YES
INSTALLATION_DIRS= bin man/man1
post-patch:
${SED} -e "s,/usr/local,${PREFIX},g" \
-e "s,syslog.pid,syslogd.pid,g" \
${WRKSRC}/sarah > ${WRKSRC}/sarah.done
${MV} ${WRKSRC}/sarah.done ${WRKSRC}/sarah
${SED} -e "s,/usr/local,${PREFIX},g" \
-e "s,syslog.pid,syslogd.pid,g" \
${WRKSRC}/sarah.1 > ${WRKSRC}/sarah.1.done
${MV} ${WRKSRC}/sarah.1.done ${WRKSRC}/sarah.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/sarah ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sarah
${INSTALL_DATA} ${WRKSRC}/sarah.conf.sample ${PREFIX}/share/examples/sarah
${INSTALL_MAN} ${WRKSRC}/sarah.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sarah
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sarah
.include "../../mk/bsd.pkg.mk"