37f54e0f66
- Convert to USES=libtool and bump dependent ports - Avoid USE_AUTOTOOLS - Don't use PTHREAD_LIBS - Use MAKE_CMD databases/glom: - Drop :keepla - Add INSTALL_TARGET=install-strip databases/libgda4* databases/libgda5*: - Convert to USES=libtool and bump dependent ports - USES=tar:xz - Use INSTALL_TARGET=install-strip - Use @sample databases/libgdamm: - Drop :keepla - USES=tar:bzip2 - Use INSTALL_TARGET=install-strip databases/libgdamm5: - Add INSTALL_TARGET=install-strip - Drop --enable-static (inherited from old repocopy) devel/anjuta x11-toolkits/py-gnome-extras: - Drop :keepla dns/powerdns dns/powerdns-devel: - Convert to USES=libtool - Add INSTALL_TARGET=install-strip - Disable static modules - Stop creating library symlinks with .0 suffix, not needed for dynamically opened modules mail/dovecot2: - Add USES=libtool mail/dovecot2-pigeonhole: - Drop CONFIGURE_TARGET (incorrect for Dragonfly) - Add USES=libtool and INSTALL_TARGET=install-strip math/gnumeric: - USES=libtool tar:xz Approved by: portmgr (implicit, bump unstaged ports)
64 lines
1.9 KiB
Makefile
64 lines
1.9 KiB
Makefile
# Created by: Vsevolod Stakhov
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openscep
|
|
PORTVERSION= 0.4.2
|
|
PORTREVISION= 9
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://openscep.othello.ch/download/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Open source scep server
|
|
|
|
CONFLICTS_INSTALL= nss-3.*
|
|
|
|
USES= gmake libtool
|
|
USE_OPENSSL= yes
|
|
USE_OPENLDAP= yes
|
|
USE_APACHE= 22+
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_DIRSTRY= www/cgi-bin
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --with-html-install-dir="${PREFIX}/www/openscep" \
|
|
--with-cgi-install-dir="${PREFIX}/www/cgi-bin/openscep" \
|
|
--with-openscep-dir="${PREFIX}/etc/openscep" \
|
|
--with-pkiclientexe="${PREFIX}/www/cgi-bin/pkiclient.exe"
|
|
|
|
CONF_DIR= ${PREFIX}/etc/${PORTNAME}
|
|
LOCAL_CONF_FILES= openscep.cnf openscep.ldif openscep.schema slapd.conf
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= CONF_DIR="${CONF_DIR}" CONF_FILES="${LOCAL_CONF_FILES}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^subdirs=/ s|libltdl||' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/ s|libltdl||' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|^\(install-data-am:\) install-data-local$$|\1|' \
|
|
${WRKSRC}/ldap/Makefile.in ${WRKSRC}/openssl/Makefile.in
|
|
@${REINPLACE_CMD} 's,sbindir),DESTDIR)$$(&,' \
|
|
${WRKSRC}/openssl/Makefile.in
|
|
@${REINPLACE_CMD} -E -e 's,(bin|sbin)dir},DESTDIR}$${&,' \
|
|
-e 's,-o \$$\(USER\) -g \$$\(GROUP\),,' \
|
|
${WRKSRC}/scep/Makefile.in \
|
|
${WRKSRC}/scepd/Makefile.in
|
|
@${REINPLACE_CMD} -E 's,(CGIINSTALLDIR|PKICLIENTEXE)),DESTDIR)$$(&,' \
|
|
${WRKSRC}/cgi-bin/Makefile.in
|
|
@${REINPLACE_CMD} 's|HTMLINSTALLDIR)|DESTDIR)$$(&|' \
|
|
${WRKSRC}/Makefile.in \
|
|
${WRKSRC}/doc/Makefile.in \
|
|
${WRKSRC}/html/Makefile.in
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${CONF_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/openssl/openscep.cnf \
|
|
${STAGEDIR}${CONF_DIR}/openscep.cnf.sample
|
|
.for f in openscep.ldif openscep.schema slapd.conf
|
|
${INSTALL_DATA} ${WRKSRC}/ldap/${f} ${STAGEDIR}${CONF_DIR}/${f}.sample
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|