pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

c3270: correctly install the config file



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Fri Jan 21 17:45:56 2022 +0100
Changeset:	e4aceb6fef6a08d6e1dddfec56fcde1834ef1a0c

Modified Files:
	c3270/Makefile
	c3270/PLIST

Log Message:
c3270: correctly install the config file

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e4aceb6fef6a08d6e1dddfec56fcde1834ef1a0c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 c3270/Makefile | 9 ++++++++-
 c3270/PLIST    | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs:
diff --git a/c3270/Makefile b/c3270/Makefile
index 2e20ae818a..62ab5aec5b 100644
--- a/c3270/Makefile
+++ b/c3270/Makefile
@@ -17,7 +17,14 @@ GNU_CONFIGURE=		yes
 CONFIGURE_ARGS+=	--enable-c3270
 USE_TOOLS+=		gmake pkg-config
 
-PKG_SYSCONFSUBDIR=	c3270
+PKG_SYSCONFSUBDIR=	x3270
+EGDIR=			share/examples/c3270
+INSTALLATION_DIRS+=	${EGDIR}
+CONF_FILES+=		${EGDIR}/ibm_hosts ${PKG_SYSCONFDIR}/ibm_hosts
+
+post-install:
+	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/ibm_hosts ${DESTDIR}${PREFIX}/${EGDIR}
+
 
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff --git a/c3270/PLIST b/c3270/PLIST
index 0f2f587709..eac0e4f0a4 100644
--- a/c3270/PLIST
+++ b/c3270/PLIST
@@ -1,4 +1,4 @@
 @comment $NetBSD$
 bin/c3270
 bin/x3270if
-etc/x3270/ibm_hosts
+share/examples/c3270/ibm_hosts


Home | Main Index | Thread Index | Old Index