1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/security/pks/Makefile
Sam Lawrance 2b05516cd2 - Fix pkg-plist
- Minor tweaking and cleanups

PR:		ports/85989
Submitted by:	Graham Todd <gtodd@bellanet.org> (maintainer)
2005-10-08 07:44:07 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection makefile for: pks
# Date created: 15 Jan 2001
# Whom: kris@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= pks
PORTVERSION= 0.9.6
CATEGORIES= security www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= gtodd@bellanet.org
COMMENT= PGP Public Key Server
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/share/pks --localstatedir=/var/pks \
--sysconfdir=${EXAMPLESDIR} \
--libdir=${LOCALBASE}/lib --with-libwrap
CFLAGS+= -I${LOCALBASE}/include/db2
MAKE_ENV+= LDFLAGS=-L${LOCALBASE}/lib SUBDIRS=
USE_RC_SUBR= pksd.sh
MAN5= pksd.conf.5
MAN8= pks-intro.8 pksclient.8 pksd.8 pksdctl.8
USE_REINPLACE= yes
SUB_FILES= pkg-message pkg-deinstall
# remove embedded sleepycat, remove associated build commands, make
# the build use the headers and libraries from the db2 port
post-patch:
${RM} -rf ${WRKSRC}/db2-sleepycat
${REINPLACE_CMD} 's|SUBDIRS =.*|SUBDIRS =|; \
s|LIBDB =.*|LIBDB = -L${LOCALBASE}/lib -ldb2|; \
s|DBDIR =.*|DBDIR = ${LOCALBASE}/include/db2|' \
${WRKSRC}/Makefile.in
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/pksd.sh ${PREFIX}/etc/rc.d/pksd.sh
${INSTALL_DATA} ${WRKSRC}/pksd.conf ${PREFIX}/etc/pksd.conf.sample
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/pks_help.en ${WRKSRC}/pks_help.es ${WRKSRC}/pks_help.fr \
${WRKSRC}/pks_help.cz ${WRKSRC}/pks_help.de ${WRKSRC}/pks_help.ja \
${WRKSRC}/mail_intro ${DOCSDIR}
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>