1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/comms/aprsd/Makefile

50 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: db
# $FreeBSD$
PORTNAME= aprsd
PORTVERSION= 2.2.515
CATEGORIES= comms hamradio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.2.5-15
DISTNAME= aprsd-2.2.5-15
MAINTAINER= db@FreeBSD.org
COMMENT= Server daemon providing Internet access to APRS packet data
GNU_CONFIGURE= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|%%CONFPATH%%|${PREFIX}/etc/aprsd/|' \
-e 's|%%LOGPATH%%|/var/log/aprsd/|' \
${WRKSRC}/src/aprsd.cpp
@${REINPLACE_CMD} -e 's|%%LOGPATH%%|/var/log/aprsd/|' \
${WRKSRC}/src/utils.cpp
post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/Makefile
pre-install:
2013-12-30 21:07:40 +00:00
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/aprsd
@${MKDIR} ${STAGEDIR}"/var/log/aprsd"
@${SETENV} "PKG_PREFIX=${STAGEDIR}${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
@cd ${WRKSRC}/admin
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
2013-12-30 21:07:40 +00:00
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${PREFIX}/etc/aprsd/$f.samp
.endfor
2013-12-30 21:07:40 +00:00
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in chkaprsd udp_example
2013-12-30 21:07:40 +00:00
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${STAGEDIR}${EXAMPLESDIR}
.endfor
2013-12-30 21:07:40 +00:00
@${INSTALL_SCRIPT} ${FILESDIR}/aprsd ${STAGEDIR}${LOCALBASE}/etc/rc.d
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${CP} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>