mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
10f266c4f0
Reported by: kris Approved by: portmgr (implicit)
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# New ports collection makefile for: listmanager
|
|
# Date created: 29 Dec 1999
|
|
# Whom: will
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= listmanager
|
|
PORTVERSION= 2.109
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.listmanager.org/v${PORTVERSION}/ \
|
|
http://www.listmanager.org/
|
|
DISTNAME= ${PORTNAME}
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
|
|
.endif
|
|
|
|
.if ${OSVERSION} >= 440000
|
|
EXTRACT_SUFX= .freebsd44
|
|
.else
|
|
EXTRACT_SUFX= .freebsd35
|
|
.endif
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} INSTALL help.tar.gz listmanager.8 ack
|
|
|
|
MAINTAINER= gshapiro@FreeBSD.org
|
|
COMMENT= Fully-featured mailing list manager
|
|
|
|
EXTRACT_CMD= ${CP}
|
|
EXTRACT_BEFORE_ARGS=
|
|
EXTRACT_AFTER_ARGS= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
ONLY_FOR_ARCHS= i386
|
|
WRKSRC= ${WRKDIR}
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
|
MAN8= listmanager.8
|
|
|
|
LISTMANAGER_HOME?=/var/listmanager
|
|
|
|
pre-patch:
|
|
(cd ${WRKSRC} && ${TAR} xfz help.tar.gz)
|
|
|
|
post-patch:
|
|
@ for file in listmanager.cf pkg-message setup; do \
|
|
${SED} -e "s|@@VARPREFIX@@|${LISTMANAGER_HOME}|g" \
|
|
-e "s|@@INSPREFIX@@|${PREFIX}|g" \
|
|
< ${FILESDIR}/$$file.in > ${WRKSRC}/$$file; \
|
|
done
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/etc
|
|
@${MKDIR} ${PREFIX}/share/listmanager/help
|
|
${INSTALL_DATA} ${WRKSRC}/listmanager.cf ${PREFIX}/etc/listmanager.cf.sample
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/listmanager
|
|
${INSTALL_DATA} ${WRKSRC}/ack ${PREFIX}/share/listmanager
|
|
${INSTALL_DATA} ${WRKSRC}/help/* ${PREFIX}/share/listmanager/help
|
|
${INSTALL_SCRIPT} ${WRKSRC}/setup ${PREFIX}/share/listmanager
|
|
${INSTALL_MAN} ${WRKSRC}/listmanager.8 ${PREFIX}/man/man8
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX} ${PREFIX}/sbin/listmanager
|
|
${CHMOD} 4510 ${PREFIX}/sbin/listmanager
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|