summaryrefslogtreecommitdiff
path: root/mail/prayer/patches/patch-ab
blob: 9d8b3c13e3e02726eacc1ec82c3801f135862163 (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
32
33
34
35
36
$NetBSD: patch-ab,v 1.4 2005/01/09 00:07:47 schmonz Exp $

--- files/install.sh.orig	2004-06-18 09:58:46.000000000 -0400
+++ files/install.sh
@@ -67,21 +67,25 @@ if [ ! -d ${PREFIX}/etc ]; then
     ${INSTALL} -d -o ${RO_USER} -g ${RO_GROUP} -m ${PUBLIC_DIR} ${PREFIX}/etc
 fi
 
-if [ ! -d ${PREFIX}/certs ]; then
-    ${INSTALL} -d -o ${RO_USER} -g ${RO_GROUP} -m ${PRIVATE_DIR} ${PREFIX}/certs
+if [ ! -d ${SSLCERTS} ]; then
+    ${BSD_INSTALL_DATA_DIR} ${SSLCERTS}
 fi
 
 if [ ! -d ${BIN_DIR} ]; then
     ${INSTALL} -d -o ${RO_USER} -g ${RO_GROUP} -m ${PRIVATE_DIR} ${BIN_DIR}
 fi
 
+if [ ! -d "${PREFIX}/share/prayer" ]; then
+    mkdir "${PREFIX}/share/prayer"
+fi
+
 for i in help icons
 do
-    if [ -d "${PREFIX}/${i}" ]; then
+    if [ -d "${PREFIX}/share/prayer/${i}" ]; then
         echo Removing old ${i}
-        rm -rf ${PREFIX}/${i}
+        rm -rf ${PREFIX}/share/prayer/${i}
     fi
     echo Copying ${i}
-    (tar cf - ${i}) | (cd ${PREFIX} ; tar xf -)
-    (cd ${PREFIX}; chown -R ${RO_USER}:${RO_GROUP} ${i})
+    (tar cf - ${i}) | (cd ${PREFIX}/share/prayer ; tar xf -)
+    (cd ${PREFIX}/share/prayer; chown -R ${RO_USER}:${RO_GROUP} ${i})
 done