beed4a9299
* honor PKG_SYSCONFDIR * add DESTDIR support.
33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
$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
|