pkgsrc/sysutils/rtty/Makefile

38 lines
1 KiB
Makefile
Raw Normal View History

2010-01-27 20:51:55 +01:00
# $NetBSD: Makefile,v 1.27 2010/01/27 19:57:12 joerg Exp $
2003-05-05 18:51:06 +02:00
DISTNAME= rtty-3.2
2003-05-05 18:50:27 +02:00
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://gatekeeper.hpl.hp.com/archive/pub/misc/vixie/ \
ftp://gatekeeper.hpl.hp.com/pub/misc/vixie/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Multiuser "tip"/"cu" replacement with logging
2010-01-27 20:51:55 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
MAKE_ENV+= LIBS="-lcrypt"
.endif
pre-configure:
1999-04-09 10:33:50 +02:00
${CHMOD} -R u+w ${WRKDIR}
for f in `${FIND} ${WRKDIR}/. -type f -print | ${XARGS} ${GREP} -l '/usr/local'`; do \
2000-02-05 08:04:07 +01:00
${ECHO} patching $$f ; \
1999-04-09 10:33:50 +02:00
${SED} -e 's:/usr/local:${PREFIX}:g' $$f > $$f.pdone && ${MV} $$f.pdone $$f; \
done
cd ${WRKDIR} && \
${SED} -e '/^agelog=/s:/usr/etc/:${PREFIX}/rtty/bin/:' agelogs.sh >agelogs.sh.pdone && ${MV} agelogs.sh.pdone agelogs.sh
2010-01-27 20:51:55 +01:00
INSTALLATION_DIRS= share/doc/rtty
INSTALL_MAKE_FLAGS+= DESTROOT=${DESTDIR}
post-install:
2010-01-27 20:51:55 +01:00
${INSTALL_DATA} ${WRKDIR}/README ${DESTDIR}${PREFIX}/share/doc/rtty/
.include "../../mk/bsd.pkg.mk"