summaryrefslogtreecommitdiff
path: root/sysutils/swapd/patches/patch-ab
blob: 75b6e1c338958336774622512435a9164527bfc8 (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
$NetBSD: patch-ab,v 1.2 2009/05/16 08:10:03 obache Exp $

--- Makefile.in.orig	2004-10-30 05:53:53.000000000 +0200
+++ Makefile.in	2004-10-30 05:56:22.000000000 +0200
@@ -10,7 +10,7 @@
 prefix = @prefix@
 mandir = @mandir@
 sysconfdir = @sysconfdir@
-datadir = @datadir@
+datadir = @datadir@/examples/swapd
 exec_prefix = @exec_prefix@
 bindir = @bindir@
 sbindir = @sbindir@
@@ -30,11 +30,11 @@
 	rm -f Makefile config.h config.status config.log swapd.8 swapd.conf.5
 
 install: all
-	-$(INSTALL) -d $(sbindir)
-	-$(INSTALL) -d $(sysconfdir)
-	-$(INSTALL) -d $(mandir)/man8
-	-$(INSTALL) -d $(mandir)/man5
-	$(INSTALL) -m 755 swapd$(EXEEXT) $(sbindir)/swapd$(EXEEXT)
-	$(INSTALL) -m 644 swapd.conf $(sysconfdir)/swapd.conf
-	$(INSTALL) -m 644 swapd.8 $(mandir)/man8/swapd.8
-	$(INSTALL) -m 644 swapd.conf.5 $(mandir)/man5/swapd.conf.5
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(sbindir)
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(datadir)
+	$(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man8
+	$(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man5
+	$(BSD_INSTALL_PROGRAM) swapd$(EXEEXT) $(DESTDIR)$(sbindir)/swapd$(EXEEXT)
+	$(BSD_INSTALL_DATA) swapd.conf $(DESTDIR)$(datadir)/swapd.conf
+	$(BSD_INSTALL_MAN) swapd.8 $(DESTDIR)$(mandir)/man8/swapd.8
+	$(BSD_INSTALL_MAN) swapd.conf.5 $(DESTDIR)$(mandir)/man5/swapd.conf.5