From 1cc784d7f401ce5a6af5a8ef3bdd342269c29f37 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Mon, 9 Jun 2014 14:41:40 +0000 Subject: [PATCH] 1: Stagify. 2: use @sample on pkg-plist. --- net/gotthard/Makefile | 11 +++-------- net/gotthard/pkg-plist | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/net/gotthard/Makefile b/net/gotthard/Makefile index 5d3d6dfa0a79..cea414d876c1 100644 --- a/net/gotthard/Makefile +++ b/net/gotthard/Makefile @@ -9,14 +9,9 @@ MASTER_SITES= http://www.nazgul.ch/dev/ MAINTAINER= ports@FreeBSD.org COMMENT= Ssh through https proxy tunnel -MAN8= gotthard.8 - -NO_STAGE= yes do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/gotthard ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/gotthard.8 ${PREFIX}/man/man8 - ${INSTALL_DATA} ${WRKSRC}/gotthard.conf ${PREFIX}/etc/gotthard.conf.sample - [ -f ${PREFIX}/etc/gotthard.conf ] || \ - ${INSTALL_DATA} ${WRKSRC}/gotthard.conf ${PREFIX}/etc + ${INSTALL_PROGRAM} ${WRKSRC}/gotthard ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/gotthard.8 ${STAGEDIR}${PREFIX}/man/man8 + ${INSTALL_DATA} ${WRKSRC}/gotthard.conf ${STAGEDIR}${PREFIX}/etc/gotthard.conf.sample .include diff --git a/net/gotthard/pkg-plist b/net/gotthard/pkg-plist index ddc0a2daa463..d19a3679f708 100644 --- a/net/gotthard/pkg-plist +++ b/net/gotthard/pkg-plist @@ -1,3 +1,3 @@ bin/gotthard -@unexec if cmp -s %D/etc/gotthard.conf %D/etc/gotthard.conf.sample; then rm -f %D/etc/gotthard.conf; fi -etc/gotthard.conf.sample +@sample etc/gotthard.conf.sample +man/man8/gotthard.8.gz