pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/bmf Use BSD_INSTALL_* instead of mkdir/cp to set ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7fdea827fc6d
branches:  trunk
changeset: 485488:7fdea827fc6d
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Dec 13 23:18:12 2004 +0000

description:
Use BSD_INSTALL_* instead of mkdir/cp to set ownership and permission
of installed files correctly.

diffstat:

 mail/bmf/distinfo         |   4 ++--
 mail/bmf/patches/patch-ab |  32 ++++++++++++++++++++++++++++----
 2 files changed, 30 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 831281a1d95b -r 7fdea827fc6d mail/bmf/distinfo
--- a/mail/bmf/distinfo Mon Dec 13 23:03:33 2004 +0000
+++ b/mail/bmf/distinfo Mon Dec 13 23:18:12 2004 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2002/10/25 14:18:13 mjl Exp $
+$NetBSD: distinfo,v 1.3 2004/12/13 23:18:12 minskim Exp $
 
 SHA1 (bmf-0.9.4.tar.gz) = d0b7ab253a531a533fefc6bc0691cc7af7ccea79
 Size (bmf-0.9.4.tar.gz) = 36740 bytes
 SHA1 (patch-aa) = 2dccc61f00373e67868bdc8e49e791e7b41fa8c0
-SHA1 (patch-ab) = 453971a7be6d6e2b53a0e99a3b1ab64f7b161416
+SHA1 (patch-ab) = 3975eed6acd129f292631bcb2ddc6916b079e3e7
diff -r 831281a1d95b -r 7fdea827fc6d mail/bmf/patches/patch-ab
--- a/mail/bmf/patches/patch-ab Mon Dec 13 23:03:33 2004 +0000
+++ b/mail/bmf/patches/patch-ab Mon Dec 13 23:18:12 2004 +0000
@@ -1,11 +1,35 @@
-$NetBSD: patch-ab,v 1.2 2002/10/25 14:18:14 mjl Exp $
+$NetBSD: patch-ab,v 1.3 2004/12/13 23:18:12 minskim Exp $
 
---- Makefile.in.orig   Sun Oct 20 22:27:56 2002
-+++ Makefile.in        Fri Oct 25 16:01:40 2002
-@@ -2,4 +2,4 @@
+--- Makefile.in.orig   2002-10-20 15:27:56.000000000 -0500
++++ Makefile.in
+@@ -1,7 +1,7 @@
+ # Makefile for bmf
  
 -BINDIR=/usr/bin
 -MANDIR=/usr/share/man
 +BINDIR?=/usr/bin
 +MANDIR?=/usr/share/man
  
+ VERSION=0.9.4
+ 
+@@ -30,13 +30,13 @@ bmfconv: bmfconv.o dbmysql.o dbdb.o dbte
+ bmfconv.o: bmfconv.c
+       $(CC) $(CFLAGS) -DPACKAGE=\"bmfconv\" -DVERSION=\"$(VERSION)\" -c $<
+ 
+-install: checkroot bmf bmf.1 bmfconv bmfconv.1
+-      [ -d $(DESTDIR)$(BINDIR) ] || mkdir -p $(DESTDIR)$(BINDIR)
+-      [ -d $(DESTDIR)$(MANDIR)/man1 ] || mkdir -p $(DESTDIR)$(MANDIR)/man1
+-      cp bmf $(DESTDIR)$(BINDIR)
+-      cp bmf.1 $(DESTDIR)$(MANDIR)/man1
+-      cp bmfconv $(DESTDIR)$(BINDIR)
+-      cp bmfconv.1 $(DESTDIR)$(MANDIR)/man1
++install: bmf bmf.1 bmfconv bmfconv.1
++      $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(MANDIR)/man1
++      $(BSD_INSTALL_PROGRAM) bmf $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_MAN) bmf.1 $(DESTDIR)$(MANDIR)/man1
++      $(BSD_INSTALL_PROGRAM) bmfconv $(DESTDIR)$(BINDIR)
++      $(BSD_INSTALL_MAN) bmfconv.1 $(DESTDIR)$(MANDIR)/man1
+ 
+ uninstall: checkroot
+       rm -f $(DESTDIR)$(BINDIR)/bmf



Home | Main Index | Thread Index | Old Index