freebsd-ports/news/ifmail/Makefile

60 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ifmail
# Date created: 19 Feb 1997
# Whom: dirk.meyer@dinoex.sub.org
#
1999-08-30 16:33:04 +02:00
# $FreeBSD$
#
PORTNAME= ifmail
PORTVERSION= 2.15
PORTREVISION= 5
2008-05-30 19:09:01 +02:00
CATEGORIES= news comms
2001-08-23 08:09:44 +02:00
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/fido
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= FidoNet(tm) support package for UN*X platform
MAN3= parsedate.3
MAN8= ifmail.8 iftoss.8
IFMAIL_RUNAS?= ifmail
PLIST_SUB+= IFMAIL_RUNAS="${IFMAIL_RUNAS}"
pre-configure:
2002-06-16 17:03:10 +02:00
@${MV} ${WRKSRC}/CONFIG ${WRKSRC}/CONFIG.sed
${SED} -e "s/OWNER = ifmail/OWNER = ${IFMAIL_RUNAS}/" \
-e "s#CC = gcc#CC = ${CC}#" \
-e "s#-O2 -Wall#${CFLAGS} -DHAS_STDARG_H -Wall#" \
2002-06-16 17:03:10 +02:00
${WRKSRC}/CONFIG.sed > ${WRKSRC}/CONFIG
pre-install:
if ! pw usershow ${IFMAIL_RUNAS}; then pw useradd ${IFMAIL_RUNAS} -g uucp -u 75 \
-h - -d /nonexistent -s /nonexistent -c "Ifmail Server"; fi
${MKDIR} ${PREFIX}/libexec/ifmail
post-install:
.for i in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${PREFIX}/man/man8
.endfor
.for i in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${PREFIX}/man/man3
.endfor
2007-08-06 12:34:12 +02:00
@${ECHO_CMD} "updating ${ROOTDIR}/etc/services"
@${CP} ${ROOTDIR}/etc/services ${ROOTDIR}/etc/services.bak
@(grep -v ^ifcico ${ROOTDIR}/etc/services.bak; \
${ECHO_CMD} "ifcico 60179/tcp #ifcico server (ifmail)") \
2007-08-06 12:34:12 +02:00
> ${ROOTDIR}/etc/services
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.for i in ifcico ifgate iflib
${INSTALL_DATA} ${WRKSRC}/${i}/README ${DOCSDIR}/README.${i}
.endfor
2008-05-30 19:09:01 +02:00
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
@${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
.endif
.include <bsd.port.mk>