Package: cryptmount / 5.0-2

install-example-cmtab.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Move installation path of example configuration file to beneath /usr/share/doc
--- a/Makefile.am
+++ b/Makefile.am
@@ -64,13 +64,10 @@
 
 .PHONY:	install-etcdir
 install-etcdir:
-	if test ! -d "${DESTDIR}${CM_SYSCONF_DIR}" ; then \
-	    ${mkdir_p} "${DESTDIR}${CM_SYSCONF_DIR}" ; \
-	    ${INSTALL_PROGRAM_ENV} ${INSTALL_DATA} cmtab.example "${DESTDIR}${CM_SYSCONF_DIR}" ; \
-	fi
 	if test ! -f "${DESTDIR}${CM_SYSCONF_DIR}/cmtab" ; then \
 	    echo -e "# ${CM_SYSCONF_DIR}/cmtab - encrypted filesystem information for cryptmount\n# try 'man 8 cryptmount' or 'man 5 cmtab' for more details\n" >> "${DESTDIR}${CM_SYSCONF_DIR}/cmtab"; \
 	fi
+	${INSTALL_PROGRAM_ENV} ${INSTALL_DATA} cmtab.example "${DESTDIR}/usr/share/doc/cryptmount/examples/cmtab"
 
 
 install-modules:	${CM_MODULES}