summaryrefslogtreecommitdiff
path: root/security/softhsm/patches/patch-aa
blob: a5b477f4bd6570f3ef240ec084cc6edfde10fdd0 (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
$NetBSD: patch-aa,v 1.3 2012/05/23 10:05:44 pettai Exp $

--- 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}