summaryrefslogtreecommitdiff
path: root/security/libtomcrypt/patches/patch-aa
blob: eb774e422bd2ce305105d418a8e6018ed2f93a2d (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
37
38
39
$NetBSD: patch-aa,v 1.1.1.1 2010/11/27 06:11:57 agc Exp $

Use pkgsrc defs to install things

Install the documentation

--- makefile.unix	2010/11/24 08:46:20	1.1
+++ makefile.unix	2010/11/24 08:53:23
@@ -29,9 +29,9 @@
 #LIBPATH-The directory for libtomcrypt to be installed to.
 #INCPATH-The directory to install the header files for libtomcrypt.
 #DATAPATH-The directory to install the pdf docs.
-LIBPATH=/usr/local/lib
-INCPATH=/usr/local/include
-DATAPATH=/usr/local/share/doc/libtomcrypt/pdf
+LIBPATH=${PREFIX}/lib
+INCPATH=${PREFIX}/include
+DATAPATH=${PREFIX}/share/doc/libtomcrypt/
 
 #Who do we install as?
 USER=root
@@ -226,11 +226,12 @@
 #as root in order to have a high enough permission to write to the correct
 #directories and to set the owner and group to root.
 install: library
-	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
-	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
-	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(DATAPATH)
-	install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
-	install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
+	${BSD_INSTALL_LIB_DIR} $(DESTDIR)$(LIBPATH)
+	${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(INCPATH)
+	${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(DATAPATH)
+	${BSD_INSTALL_LIB} $(LIBNAME) $(DESTDIR)$(LIBPATH)
+	${BSD_INSTALL_DATA} $(HEADERS) $(DESTDIR)$(INCPATH)
+	${BSD_INSTALL_DATA} doc/crypt.pdf $(DESTDIR)$(DATAPATH)
 
 install_test: testprof/$(LIBTEST)
 	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)