summaryrefslogtreecommitdiff
path: root/mail/youbin/Makefile
blob: decf7984da80f68bf5b4871ce056e76561913146 (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
# New ports collection makefile for:	youbin
# http://www.agusa.nuie.nagoya-u.ac.jp/software/youbin/youbin-e.html
# Version required:		2.13
# Date created:			09 Aug 1996
# Whom:				Masafumi NAKANE <max@FreeBSD.ORG>
#
# $Id: Makefile,v 1.12 1998/08/03 10:06:58 ache Exp $
#

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

MAINTAINER=	max@FreeBSD.ORG

LIB_DEPENDS=	Xpm.5:${PORTSDIR}/graphics/xpm

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

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

post-install:
	@if [ ! -f ${STARTUP_SCRIPT} ]; then				\
		echo "Creating startup script '${STARTUP_SCRIPT}'" ;	\
		echo "#!/bin/sh" > ${STARTUP_SCRIPT} ;			\
		echo "if [ -f ${PREFIX}/sbin/youbind ]; then"		\
			>> ${STARTUP_SCRIPT} ;				\
		echo "    ${PREFIX}/sbin/youbind ; echo -n ' youbind'"	\
			>> ${STARTUP_SCRIPT} ;				\
		echo "fi" >> ${STARTUP_SCRIPT} ;			\
		chmod 755 ${STARTUP_SCRIPT} ;				\
	fi
	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>