make sure that the /etc/monkeysphere/gpg-*.conf are placed during package installation.
[monkeysphere.git] / packaging / freebsd / Makefile
index 78ad0d3a3a6f22e5bef4accd600eb83071562fcb..f4bf0fe2d54a220086704f71627f66380e775cf0 100644 (file)
@@ -34,6 +34,12 @@ post-patch:
        find . -iname '*.orig' -delete
 
 post-install:
+       @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-host.conf ]; then \
+               ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-host.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-host.conf ; \
+       fi
+       @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ]; then \
+               ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ; \
+       fi
        @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
                ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
        fi