summaryrefslogtreecommitdiff
path: root/chat/silc-server
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-04 18:04:12 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-04 18:04:12 +0000
commitc0373293974abf5c0722f0860ef10bb62c4b36c2 (patch)
treeaf6f3fbfc3e60ba08a994874e0e99f83648350d4 /chat/silc-server
parent848c8baec501a7f941359e218b8f4938ff032091 (diff)
downloadpkgsrc-c0373293974abf5c0722f0860ef10bb62c4b36c2.tar.gz
Use SUBST framework instead of FILES_SUBST_SED.
Diffstat (limited to 'chat/silc-server')
-rw-r--r--chat/silc-server/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/chat/silc-server/Makefile b/chat/silc-server/Makefile
index 8357887589a..d2f158a2fe1 100644
--- a/chat/silc-server/Makefile
+++ b/chat/silc-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.47 2005/12/29 06:21:33 jlam Exp $
+# $NetBSD: Makefile,v 1.48 2006/01/04 18:04:12 joerg Exp $
#
DISTNAME= silc-server-1.0.2
@@ -71,8 +71,15 @@ CONFIGURE_ARGS+= --disable-asm
.include "options.mk"
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= post-patch
+SUBST_FILES.paths= motd.txt
+SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},'
+
+post-extract:
+ @${CP} ${FILESDIR}/motd.txt ${WRKSRC}
+
post-install:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/motd.txt \
- > ${EGDIR}/motd.txt.default
+ ${INSTALL_DATA} ${WRKSRC}/motd.txt ${EGDIR}/motd.txt.default
.include "../../mk/bsd.pkg.mk"