From 04df566144768e4b5e59147ebeae21297d367810 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Sat, 16 Jan 2010 02:17:02 +0000 Subject: [PATCH] - use $SUB_FILES to dynamically adjust pkg-message PR: ports/142441 Submitted by: Sevan Janiyan --- comms/aprsd/Makefile | 11 +++++------ comms/aprsd/files/{pkg_message.in => pkg-message.in} | 0 2 files changed, 5 insertions(+), 6 deletions(-) rename comms/aprsd/files/{pkg_message.in => pkg-message.in} (100%) 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 @@ -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 diff --git a/comms/aprsd/files/pkg_message.in b/comms/aprsd/files/pkg-message.in similarity index 100% rename from comms/aprsd/files/pkg_message.in rename to comms/aprsd/files/pkg-message.in