mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
829e785ce6
PR: ports/189616 Submitted by: Allan Saddi <allan@saddi.com> (maintainer)
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: allan@saddi.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yafic
|
|
PORTVERSION= 1.2.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= allan@saddi.com
|
|
COMMENT= Yet Another File Integrity Checker, similar to Tripwire
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake
|
|
LDFLAGS+= -static
|
|
|
|
.if defined(WITHOUT_OPENSSL)
|
|
CONFIGURE_ARGS= --disable-crypto
|
|
PLIST_SUB+= CRYPTO="@comment "
|
|
.else
|
|
PLIST_SUB+= CRYPTO=""
|
|
.endif
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
post-patch:
|
|
@${SED} -e "s;@@PREFIX@@;${PREFIX};g" \
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/yafic ${STAGEDIR}${PREFIX}/bin
|
|
.if !defined(WITHOUT_OPENSSL)
|
|
${INSTALL_PROGRAM} ${WRKSRC}/yafic-sign ${STAGEDIR}${PREFIX}/bin
|
|
${LN} -sf yafic-sign ${STAGEDIR}${PREFIX}/bin/yafic-check
|
|
.endif
|
|
${INSTALL_MAN} ${WRKSRC}/yafic.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
.if !defined(WITHOUT_OPENSSL)
|
|
${INSTALL_MAN} ${WRKSRC}/yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
${LN} -sf yafic-sign.1 ${STAGEDIR}${PREFIX}/man/man1/yafic-check.1
|
|
.endif
|
|
${INSTALL_MAN} ${WRKSRC}/yafic.conf.5 ${STAGEDIR}${PREFIX}/man/man5
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/yafic
|
|
@${CP} ${FILESDIR}/yafic.conf.sample ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|