summaryrefslogtreecommitdiff
path: root/security/softhsm/patches/patch-Makefile.in
blob: 9fabf1bdf9a378cf25e92d19029977497e645704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-Makefile.in,v 1.1 2014/11/18 13:40:57 he Exp $

Tweak install-data-hook target.

--- Makefile.in.orig	2012-05-09 18:41:49.000000000 +0000
+++ Makefile.in
@@ -271,6 +271,7 @@ sharedstatedir = @sharedstatedir@
 softhsmdbdir = @softhsmdbdir@
 srcdir = @srcdir@
 sysconfdir = @sysconfdir@
+EGDIR = @EGDIR@
 target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
@@ -869,11 +870,11 @@ uninstall-man: uninstall-man5
 
 
 install-data-hook:
-	test -d ${DESTDIR}${sysconfdir} || \
-		${INSTALL} -d ${DESTDIR}${sysconfdir}
-	test -f ${DESTDIR}${sysconfdir}/softhsm.conf || \
-		${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${sysconfdir}
-	${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${sysconfdir}/softhsm.conf.sample
+	test -d ${DESTDIR}${EGDIR} || \
+		${INSTALL} -d ${DESTDIR}${EGDIR}
+	test -f ${DESTDIR}${EGDIR}/softhsm.conf || \
+		${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${EGDIR}
+	${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${EGDIR}/softhsm.conf.sample
 	test -d ${DESTDIR}${softhsmdbdir} || \
 		${INSTALL} -d -m 700 ${DESTDIR}${softhsmdbdir}