1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/net/delegate/Makefile
Mark Linimon aff42c7199 Mark ports broken on mips64 that are already broken on powerpc64. In
most cases, the failure mode is the same.  Also, mark them broken on
mips when necessary.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2018-07-02 04:00:29 +00:00

54 lines
1.8 KiB
Makefile

# Created by: Masafumi NAKANE <max@FreeBSD.org>
# $FreeBSD$
PORTNAME= delegate
PORTVERSION= 9.9.13
CATEGORIES= net www
MASTER_SITES= ftp://ftp.delegate.org/pub/DeleGate/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= General purpose TCP/IP proxy system
BROKEN_mips= fails to build: gmake[1]: *** [Makefile:116: mkmake.exe] Error 1
BROKEN_mips64= fails to build: gmake[1]: *** [Makefile:116: mkmake.exe] Error 1
BROKEN_powerpc64= fails to build: gmake[1]: *** [Makefile:116: mkmake.exe] Error 1
USES= gmake
SUB_FILES= pkg-message
ADMIN?= admin@example.com
CFLAGS+= -x c++ -std=gnu++98
PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist
PORTDOCS= CHANGES COPYRIGHT DG9note.html HowToDG.html IPv6NOTE.txt \
Manual.htm jpconv.htm tutor-en.htm tutor-jp.htm
post-extract:
@${LN} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/DG9note.html \
${WRKSRC}/IPv6NOTE.txt ${WRKSRC}/doc
post-patch:
# Prevent "filesystem was touched prior to 'make install' phase" warning;
# allow unattended (non-interactive) builds
@${REINPLACE_CMD} -e 's,"$$(XDG)",& DGROOT=${WRKDIR},' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -E '/ADMIN/s,undef,${ADMIN}, ; \
s,-F(esign|ver),& DGROOT=${WRKDIR},' ${WRKSRC}/src/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${STAGEDIR}${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/delegated.sh \
${STAGEDIR}${PREFIX}/etc/rc.d/delegated.sh-dist
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
# Re-sign the executable
@${MKDIR} ${WRKDIR}/tmp
@${CP} ${STAGEDIR}${PREFIX}/sbin/delegated ${WRKDIR}/tmp/dg
@${CHMOD} +w ${STAGEDIR}${PREFIX}/sbin/delegated
@${WRKDIR}/tmp/dg DGROOT=${WRKDIR}/tmp/ -Fesign -w ${STAGEDIR}${PREFIX}/sbin/delegated
@${CHMOD} -w ${STAGEDIR}${PREFIX}/sbin/delegated
.include <bsd.port.mk>