pkgsrc-WIP-changes archive

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

motion: install the example files consistently



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Mon May 2 02:15:02 2022 +0200
Changeset:	cd214c5013b116ca202adc7bf472368d4571b748

Modified Files:
	motion/Makefile
	motion/PLIST

Log Message:
motion: install the example files consistently

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

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

diffstat:
 motion/Makefile |  9 +++++++++
 motion/PLIST    | 16 ++++++++--------
 2 files changed, 17 insertions(+), 8 deletions(-)

diffs:
diff --git a/motion/Makefile b/motion/Makefile
index 7da45b4bbf..9d64ea64d1 100644
--- a/motion/Makefile
+++ b/motion/Makefile
@@ -14,6 +14,15 @@ GNU_CONFIGURE=	yes
 USE_TOOLS+=	autoconf automake bash gmake pkg-config
 CONFIG_SHELL=	bash
 
+PKG_SYSCONFSUBDIR=	motion
+EGDIR=			${PREFIX}/share/examples
+INSTALL_MAKE_FLAGS+=	examplesdir=${EGDIR}/motion
+INSTALL_MAKE_FLAGS+=	sysconfdir=${EGDIR}
+
+.for file in motion-dist.conf camera1-dist.conf camera2-dist.conf camera3-dist.conf camera4-dist.conf
+CONF_FILES+=	${EGDIR}/motion/${file} ${PKG_SYSCONFDIR}/${file}
+.endfor
+
 pre-configure:
 	cd ${WRKSRC} && autoreconf -fiv
 
diff --git a/motion/PLIST b/motion/PLIST
index d6df675f24..62c757d27d 100644
--- a/motion/PLIST
+++ b/motion/PLIST
@@ -1,6 +1,5 @@
 @comment $NetBSD$
 bin/motion
-etc/motion/motion-dist.conf
 man/man1/motion.1
 share/doc/motion/CHANGELOG
 share/doc/motion/COPYING
@@ -11,10 +10,11 @@ share/doc/motion/motion_guide.html
 share/doc/motion/normal.jpg
 share/doc/motion/outputmotion1.jpg
 share/doc/motion/outputnormal1.jpg
-share/motion/examples/camera1-dist.conf
-share/motion/examples/camera2-dist.conf
-share/motion/examples/camera3-dist.conf
-share/motion/examples/camera4-dist.conf
-share/motion/examples/motion-dist.conf
-share/motion/examples/motion.init-FreeBSD.sh
-share/motion/examples/motion.service
+share/examples/motion/camera1-dist.conf
+share/examples/motion/camera2-dist.conf
+share/examples/motion/camera3-dist.conf
+share/examples/motion/camera4-dist.conf
+share/examples/motion/motion-dist.conf
+share/examples/motion/motion.init-Debian
+share/examples/motion/motion.init-FreeBSD.sh
+share/examples/motion/motion.service


Home | Main Index | Thread Index | Old Index