Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / knock / patches / patch-Makefile.in
blobc9cc05bb9a009614fc2334de2f452b447a01095c
1 $NetBSD: patch-ab,v 1.1.1.1 2010/11/30 12:35:12 adam Exp $
3 Fix installation.
5 --- Makefile.in.orig    2010-11-30 10:30:02.000000000 +0000
6 +++ Makefile.in
7 @@ -28,6 +28,7 @@ VERSION = 0.5
8  BINDIR  = @bindir@
9  SBINDIR = @sbindir@
10  MANDIR  = @mandir@
11 +DATADIR = @datadir@
13  INSTALL = @INSTALL@
14  INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
15 @@ -68,11 +68,11 @@ dist: distclean
16         (cd ..; tar czvf knock-$(VERSION).tar.gz knock-$(VERSION))
18  install: all
19 -       $(INSTALL) -D -m0755 knockd $(DESTDIR)$(SBINDIR)/knockd
20 -       $(INSTALL) -D -m0755 knock $(DESTDIR)$(BINDIR)/knock
21 -       $(INSTALL) -D -m0644 $(MANSRC)knockd.1 $(DESTDIR)$(MANDIR)/man1/knockd.1
22 -       $(INSTALL) -D -m0644 $(MANSRC)knock.1 $(DESTDIR)$(MANDIR)/man1/knock.1
23 -       $(INSTALL) -D -m0644 knockd.conf $(DESTDIR)/etc/knockd.conf
24 +       ${BSD_INSTALL_PROGRAM} knockd $(DESTDIR)$(SBINDIR)/knockd
25 +       ${BSD_INSTALL_PROGRAM} knock $(DESTDIR)$(BINDIR)/knock
26 +       ${BSD_INSTALL_MAN} $(MANSRC)knockd.1 $(DESTDIR)$(MANDIR)/man8/knockd.8
27 +       ${BSD_INSTALL_MAN} $(MANSRC)knock.1 $(DESTDIR)$(MANDIR)/man1/knock.1
28 +       ${BSD_INSTALL_DATA} knockd.conf $(DESTDIR)$(DATADIR)/examples/knock/knockd.conf
30  clean:
31         rm -f *~ $(OBJDIR)*.o $(MANSRC)*.1