summaryrefslogtreecommitdiff
path: root/mail/youbin/Makefile
blob: 29cdf4a20e8154c07e7f5e28ed9c2f1e8a7732cf (plain) (blame)
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
36
37
38
39
40
41
42
# New ports collection makefile for:	youbin
# Date created:			09 Aug 1996
# Whom:				Masafumi NAKANE <max@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	youbin
PORTVERSION= 	2.13
CATEGORIES=	mail
MASTER_SITES=	ftp://ftp.nuie.nagoya-u.ac.jp/pub/nagoya-u/ \
		ftp://ftp.kyoto.wide.ad.jp/pub/net/

MAINTAINER=	max@FreeBSD.org

USE_IMAKE=	yes
USE_XPM=	yes
PREFIX?=         ${LOCALBASE}
MTREE_FILE?=	/etc/mtree/BSD.local.dist

MAN1=		youbin.1
MAN3=		youbin_sub.3
MAN8=		youbind.8

STARTUP_SCRIPT=	${PREFIX}/etc/rc.d/youbind.sh.sample

pre-build:
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGDIR}/REQ ${PKGNAME} BUILD

pre-install:
	@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL

post-install:
	@if [ ! -f ${STARTUP_SCRIPT} ]; then \
		${ECHO} "Creating startup script '${STARTUP_SCRIPT}'" ;	\
		${SED} s:@PREFIX@:${PREFIX}: ${FILESDIR}/youbind.sh.sample \
		  > ${STARTUP_SCRIPT} ; \
		${CHMOD} 755 ${STARTUP_SCRIPT} ; \
	fi
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>