pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xbps: Handling conf files correctly.
Module Name: pkgsrc-wip
Committed By: Aleksej Lebedev <root%zta.lk@localhost>
Pushed By: zhtw
Date: Mon May 13 15:41:04 2019 +0000
Changeset: bbcab3ffbb172928352c373d0f92a094ae73f0d6
Modified Files:
xbps/Makefile
xbps/PLIST
Log Message:
xbps: Handling conf files correctly.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bbcab3ffbb172928352c373d0f92a094ae73f0d6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
xbps/Makefile | 15 +++++++++++++++
xbps/PLIST | 4 ++--
2 files changed, 17 insertions(+), 2 deletions(-)
diffs:
diff --git a/xbps/Makefile b/xbps/Makefile
index 1656202efc..98983cb524 100644
--- a/xbps/Makefile
+++ b/xbps/Makefile
@@ -9,9 +9,24 @@ HOMEPAGE= https://github.com/void-linux/xbps/
COMMENT= The X Binary Package System
LICENSE= 2-clause-bsd
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES= ${EGDIR}/xbps.conf.example \
+ ${PKG_SYSCONFDIR}/xbps.d/xbps.conf \
+ ${EGDIR}/00-repository-main.conf.example \
+ ${PKG_SYSCONFDIR}/xbps.d/00-repository-main.conf
+
+OWN_DIRS+= ${PKG_SYSCONFDIR}/${PKGBASE}
+
USE_TOOLS+= pkg-config gmake
GNU_CONFIGURE= yes
+post-install:
+ cd ${DESTDIR}${PREFIX}/share && \
+ ${MKDIR} examples/xbps && \
+ ${MV} xbps.d/xbps.conf examples/xbps/xbps.conf.example && \
+ ${MV} xbps.d/00-repository-main.conf examples/xbps/00-repository-main.conf.example && \
+ ${RMDIR} xbps.d
+
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/xbps/PLIST b/xbps/PLIST
index 14966909f8..9d9f62a67e 100644
--- a/xbps/PLIST
+++ b/xbps/PLIST
@@ -50,7 +50,7 @@ share/bash-completion/completions/xbps-query
share/bash-completion/completions/xbps-reconfigure
share/bash-completion/completions/xbps-remove
share/bash-completion/completions/xbps-rindex
-share/xbps.d/00-repository-main.conf
-share/xbps.d/xbps.conf
+share/examples/xbps/00-repository-main.conf.example
+share/examples/xbps/xbps.conf.example
share/zsh/site-functions/_xbps
share/zsh/site-functions/_xbps_src
Home |
Main Index |
Thread Index |
Old Index