pkgsrc/mail/cucipop/patches/patch-ad
jlam 73485778a7 * makevpopdb(8) does not need to be setgid anything. It is supposed to be
run as "root".

* Remove unnecessary passing of ROOT_USER and ROOT_GROUP to the
  distribution Makefile.  Instead, we simply use BSD_INSTALL_* macros
  to do the installation and use SPECIAL_PERMS to clean up and special
  permissions after the fact.

* Add a TODO section to the package Makefile that highlights the things
  that need to be done to fix this package.

* Fix MESSAGE to refer to ${PREFIX}, not ${LOCALBASE}, for the location
  of the installed files.

Bump PKGREVISION to 3 due to change in permissions for makevpopdb.
2007-06-19 21:07:42 +00:00

34 lines
942 B
Text

$NetBSD: patch-ad,v 1.6 2007/06/19 21:07:42 jlam Exp $
--- Makefile.orig 1998-05-12 17:09:14.000000000 -0400
+++ Makefile
@@ -2,3 +2,3 @@
-BASENAME= /usr
+BASENAME= ${PREFIX}
@@ -12,7 +12,7 @@ GCC_WARNINGS = -O2 -pedantic -Wreturn-ty
-CFLAGS = -O -DUSE_DB #$(GCC_WARNINGS)
-LDFLAGS = -lcrypt -ldb2
+CFLAGS += -O ${CFLAGS_INET6} #-DUSE_DB $(GCC_WARNINGS)
+LDFLAGS += -lcrypt
# If you change this, edit config.h as well
-CUCIPOPLIB=/var/lib/cucipop
+CUCIPOPLIB=${PREFIX}/share/cucipop
CUCIPOPBULLETINS=$(CUCIPOPLIB)/bulletins
@@ -24,6 +24,2 @@ MANDIR=$(BASENAME)/man/man8
-INSTALL=install -o root -m
-BINPERM=02755 -s -g mail
-REGPERM=0644
-
#
@@ -70,4 +66,4 @@ $(MD5_OBJ): md5/md5c.c md5/md5.h
install: $(BINS) $(MANS)
- $(INSTALL) $(BINPERM) $(BINS) $(BINDIR)
- $(INSTALL) $(REGPERM) $(MANS) $(MANDIR)
+ $(BSD_INSTALL_PROGRAM) $(BINS) $(BINDIR)
+ $(BSD_INSTALL_DATA) $(MANS) $(MANDIR)
mkdir $(CUCIPOPLIB) 2>/dev/null; exit 0