8bdf4d556c
use MAKE_DIRS for bulletins directory. use BSD install to install binaries and man pages. fixes install on Solaris. bump PKGREVISION.
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2004/01/26 10:51:44 grant Exp $
|
|
#
|
|
|
|
DISTNAME= cucipop-1.31
|
|
PKGREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.informatik.rwth-aachen.de/pub/packages/cucipop/
|
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
PATCHFILES= cucipop-1.31-v6-20010223.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
COMMENT= The Cubic Circle POP3 mail server
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
LICENSE= shareware
|
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
MAKE_ENV+= ROOT_USER="${ROOT_USER}"
|
|
MAKE_ENV+= ROOT_GROUP="${ROOT_GROUP}"
|
|
|
|
MAKE_DIRS+= ${PREFIX}/share/cucipop/bulletins
|
|
SPECIAL_PERMS+= ${PREFIX}/sbin/cucipop ${ROOT_USER} ${ROOT_GROUP} 2755
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# to be friendly with pre-1.5 systems
|
|
.if defined(USE_INET6) && ${USE_INET6} == "YES"
|
|
MAKE_ENV+= CFLAGS_INET6=-DINET6
|
|
.endif
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
LDFLAGS+= -lnsl -lsocket
|
|
.endif
|
|
|
|
pre-configure:
|
|
@(cd ${WRKSRC}; \
|
|
for f in config.h cucipop.8 makevpopdb.8; do \
|
|
${SED} -e 's|@prefix@|${PREFIX}|g' $$f > $$f.fixed && \
|
|
${MV} $$f.fixed $$f; \
|
|
done)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/cucipop ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/makevpopdb ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/cucipop.8 ${PREFIX}/man/man8
|
|
${INSTALL_MAN} ${WRKSRC}/makevpopdb.8 ${PREFIX}/man/man8
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|