Bug 124 - Makefile should use DESTDIR
Makefile should use DESTDIR
Status: RESOLVED FIXED
Product: NSD
Classification: Unclassified
Component: NSD Code
2.3.x
Sun All
: P2 enhancement
Assigned To: NSD team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-18 13:27 CET by Paul Boven
Modified: 2006-01-18 14:52 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Boven 2006-01-18 13:27:48 CET
 
Comment 1 Paul Boven 2006-01-18 13:28:17 CET
It would be nice if the Makefile supported a 'DESTDIR' to ease the life of those
who package the software.
Comment 2 Paul Boven 2006-01-18 14:35:33 CET
--- nsd-2.3.3.org/Makefile.in   Wed Nov 23 16:50:30 2005
+++ nsd-2.3.3/Makefile.in       Wed Jan 18 14:30:50 2006
@@ -134,22 +134,22 @@
        $(EDIT) nsdc.conf.sample.in > nsdc.conf.sample
 
 install: all
-       $(INSTALL) -d $(sbindir)
-       $(INSTALL) -d $(configdir)
-       $(INSTALL) -d $(mandir)
-       $(INSTALL) -d $(mandir)/man8
-       $(INSTALL) nsd $(sbindir)/nsd
-       $(INSTALL) zonec $(sbindir)/zonec
-       $(INSTALL) nsdc.sh $(sbindir)/nsdc
-       $(INSTALL) nsd-notify $(sbindir)/nsd-notify
-       $(INSTALL) nsd-xfer $(sbindir)/nsd-xfer
-       $(INSTALL_DATA) nsd.8 $(mandir)/man8
-       $(INSTALL_DATA) nsdc.8 $(mandir)/man8
-       $(INSTALL_DATA) zonec.8 $(mandir)/man8
-       $(INSTALL_DATA) nsd-notify.8 $(mandir)/man8/nsd-notify.8
-       $(INSTALL_DATA) nsd-xfer.8 $(mandir)/man8/nsd-xfer.8
-       $(INSTALL_DATA) nsdc.conf.sample $(configfile).sample
-       $(INSTALL_DATA) nsd.zones.sample $(zonesfile).sample
+       $(INSTALL) -d $(DESTDIR)$(sbindir)
+       $(INSTALL) -d $(DESTDIR)$(configdir)
+       $(INSTALL) -d $(DESTDIR)$(mandir)
+       $(INSTALL) -d $(DESTDIR)$(mandir)/man8
+       $(INSTALL) nsd $(DESTDIR)$(sbindir)/nsd
+       $(INSTALL) zonec $(DESTDIR)$(sbindir)/zonec
+       $(INSTALL) nsdc.sh $(DESTDIR)$(sbindir)/nsdc
+       $(INSTALL) nsd-notify $(DESTDIR)$(sbindir)/nsd-notify
+       $(INSTALL) nsd-xfer $(DESTDIR)$(sbindir)/nsd-xfer
+       $(INSTALL_DATA) nsd.8 $(DESTDIR)$(mandir)/man8
+       $(INSTALL_DATA) nsdc.8 $(DESTDIR)$(mandir)/man8
+       $(INSTALL_DATA) zonec.8 $(DESTDIR)$(mandir)/man8
+       $(INSTALL_DATA) nsd-notify.8 $(DESTDIR)$(mandir)/man8/nsd-notify.8
+       $(INSTALL_DATA) nsd-xfer.8 $(DESTDIR)$(mandir)/man8/nsd-xfer.8
+       $(INSTALL_DATA) nsdc.conf.sample $(DESTDIR)$(configfile).sample
+       $(INSTALL_DATA) nsd.zones.sample $(DESTDIR)$(zonesfile).sample
 
 uninstall:
        @echo
Comment 3 Miek Gieben 2006-01-18 14:52:25 CET
Patch was applied. Thanks
(I've also added $DESTDIR to the uninstall target)