aboutsummaryrefslogtreecommitdiffstats
path: root/comms/aprsd
diff options
context:
space:
mode:
Diffstat (limited to 'comms/aprsd')
-rw-r--r--comms/aprsd/Makefile11
-rw-r--r--comms/aprsd/files/pkg-message.in (renamed from comms/aprsd/files/pkg_message.in)0
2 files changed, 5 insertions, 6 deletions
diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile
index ab4ebb07f2e8..f306b9bfdc73 100644
--- a/comms/aprsd/Makefile
+++ b/comms/aprsd/Makefile
@@ -15,8 +15,7 @@ MAINTAINER= db@FreeBSD.org
COMMENT= Server daemon providing Internet access to APRS packet data
GNU_CONFIGURE= yes
-PKGMESSAGE= ${FILESDIR}/pkg_message.in
-WRK_PKGMESSAGE= ${WRKDIR}/pkg_message
+SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
@@ -26,16 +25,16 @@ post-patch:
${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:
@${MKDIR} ${PREFIX}/etc/aprsd
@${MKDIR} "/var/log/aprsd"
- @${CP} ${PKGMESSAGE} ${WRK_PKGMESSAGE}
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
- ${WRK_PKGMESSAGE}
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
post-install:
@cd ${WRKSRC}/admin
.for f in INIT.TNC RESTORE.TNC aprsd.conf welcome.txt user.deny
@@ -53,6 +52,6 @@ post-install:
@${ECHO} docs are in ${PREFIX}/share/doc/aprsd
@${ECHO}
.endif
- @${CAT} ${WRK_PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/comms/aprsd/files/pkg_message.in b/comms/aprsd/files/pkg-message.in
index 2ed67ce89297..2ed67ce89297 100644
--- a/comms/aprsd/files/pkg_message.in
+++ b/comms/aprsd/files/pkg-message.in