mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
aeac01a4bb
Approved by: portmgr (not really, but touches unstaged ports)
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Created by: janos.mohacsi@bsd.hu
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ramond
|
|
PORTVERSION= 0.5
|
|
PORTREVISION= 4
|
|
CATEGORIES= net-mgmt ipv6
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/_${PORTVERSION}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= On-link IPv6 router advertisement monitoring and reporting daemon
|
|
|
|
LICENSE= BSD
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
USES= tar:bzip2
|
|
USE_GNOME= libxml2
|
|
USE_RC_SUBR= ramon
|
|
|
|
PORTDOCS= README
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
LIB_DEPENDS+= libapr-1.so:${PORTSDIR}/devel/apr1
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/gcc|${CC}|g' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/main.c
|
|
@${REINPLACE_CMD} -e 's|"/etc/|"${PREFIX}/etc/|g' ${WRKSRC}/src/main.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ramond ${PREFIX}/sbin
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.dtd \
|
|
${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/demo.pl \
|
|
${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/ramond.conf.example ${PREFIX}/etc/
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|