openbsd-ports/news/leafnode/Makefile
ajacoutot c54e12bbe0 Sanitize some @unexec/@extraunexec calls to rm: move them up in the
PLIST and delete everything under the @sample'd directory instead of the
directory itself to prevent a warning from pkg_delete(1) trying to
remove a non existing directory and to help preventing left-over files
and directories.
2011-05-11 07:45:52 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.52 2011/05/11 07:45:52 ajacoutot Exp $
COMMENT= USENET software package designed for small sites
VERSION= 1.11.6
DISTNAME= leafnode-${VERSION}
REVISION= 1
EXTRACT_SUFX= .tar.bz2
CATEGORIES= news
HOMEPAGE= http://leafnode.sourceforge.net/
# MIT/BSD like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c pcre
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=leafnode/}
EXTRACT_SUFX= .tar.bz2
LIB_DEPENDS= devel/pcre
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --localstatedir=/var
CONFIGURE_ARGS+= --with-lockfile=/var/spool/news/fetchnews.lck
CONFIGURE_ARGS+= --with-ipv6
CONFIGURE_ARGS+= --with-user=_news
USE_GROFF = Yes
DOCS= README README-FQDN INSTALL FAQ.txt NEWS OLDNEWS
post-install:
$(INSTALL_DATA_DIR) ${PREFIX}/share/doc/leafnode
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/leafnode
cd ${WRKSRC} && $(INSTALL_DATA) ${DOCS} \
${PREFIX}/share/doc/leafnode
${INSTALL_DATA} ${WRKINST}/${SYSCONFDIR}/leafnode/* \
${PREFIX}/share/examples/leafnode/
.include <bsd.port.mk>
CONFIGURE_ARGS+= --sysconfdir=${SYSCONFDIR}/leafnode