2008-01-24 18:23:27 +00:00
|
|
|
# ports collection makefile for: aprsd
|
|
|
|
# Date created: 14 Jan 2008
|
|
|
|
# Whom: db
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= aprsd
|
|
|
|
PORTVERSION= 2.2.515
|
|
|
|
CATEGORIES= comms hamradio
|
2009-08-22 00:15:15 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2.2.5-15
|
2008-01-24 18:23:27 +00:00
|
|
|
DISTNAME= aprsd-2.2.5-15
|
|
|
|
|
|
|
|
MAINTAINER= db@FreeBSD.org
|
|
|
|
COMMENT= Server daemon providing Internet access to APRS packet data
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2010-01-16 02:17:02 +00:00
|
|
|
SUB_FILES= pkg-message
|
2008-01-24 18:23:27 +00:00
|
|
|
|
|
|
|
.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
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
|
|
|
|
${WRKSRC}/Makefile
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/etc/aprsd
|
|
|
|
@${MKDIR} "/var/log/aprsd"
|
|
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2010-01-16 02:17:02 +00:00
|
|
|
|
2008-01-24 18:23:27 +00:00
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/admin
|
|
|
|
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${PREFIX}/etc/aprsd/$f.samp
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
.for f in chkaprsd udp_example
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/admin/$f ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/aprsd ${LOCALBASE}/etc/rc.d
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${CP} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} docs are in ${PREFIX}/share/doc/aprsd
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
2010-01-16 02:17:02 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2008-01-24 18:23:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|