summaryrefslogtreecommitdiff
path: root/sysutils/rtty/Makefile
blob: 4fba79e9bb0a27c2b56c0d92f75aa21c8dcba0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $NetBSD: Makefile,v 1.29 2013/05/23 18:42:22 joerg Exp $

DISTNAME=	rtty-3.2
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

WRKSRC=		${WRKDIR}

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Darwin"
MAKE_ENV+=	LIBS="-lcrypt"
.endif

pre-configure:
	${CHMOD} u+w ${WRKDIR}/*
	for f in `echo ${WRKDIR}/* | ${XARGS} ${GREP} -l '/usr/local'`; do \
		${ECHO} patching $$f ; \
		${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

INSTALLATION_DIRS=	share/doc/rtty
INSTALL_MAKE_FLAGS+=	DESTROOT=${DESTDIR}

post-install:
	${INSTALL_DATA}  ${WRKDIR}/README ${DESTDIR}${PREFIX}/share/doc/rtty/

.include "../../mk/bsd.pkg.mk"