c9280515c9
also fix unprivileged builds in general.
56 lines
2.2 KiB
Text
56 lines
2.2 KiB
Text
$NetBSD: patch-aa,v 1.3 2006/11/03 09:07:30 joerg Exp $
|
|
|
|
--- Makefile.orig 2003-08-07 15:40:30.000000000 +0000
|
|
+++ Makefile
|
|
@@ -1,12 +1,10 @@
|
|
##################################################################
|
|
# You can modify CC variable if you have compiler other than GCC
|
|
# But the code was designed and tested with GCC
|
|
-CC = gcc
|
|
|
|
##################################################################
|
|
# Compilation flags
|
|
# You should comment the line below for AIX+native cc
|
|
-FLAGS = -Wall
|
|
|
|
##################################################################
|
|
# Libraries
|
|
@@ -39,7 +37,6 @@ USE_SHA = APG_DONOTUSE_SHA
|
|
##################################################################
|
|
# Directories
|
|
# Install dirs
|
|
-INSTALL_PREFIX = /usr/local
|
|
APG_BIN_DIR = /bin
|
|
APG_MAN_DIR = /man/man1
|
|
APGD_BIN_DIR = /sbin
|
|
@@ -110,24 +107,12 @@ strip:
|
|
strip ${BFM_PROGNAME}
|
|
|
|
install:
|
|
- if test -x ./apg; then \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
|
|
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apg ${INSTALL_PREFIX}${APG_BIN_DIR}; \
|
|
-./install-sh -c -m 0444 ./doc/man/apg.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
|
|
-fi
|
|
- if test -x ./apgd; then \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
|
|
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgd ${INSTALL_PREFIX}${APGD_BIN_DIR}; \
|
|
-./install-sh -c -m 0444 ./doc/man/apgd.8 ${INSTALL_PREFIX}${APGD_MAN_DIR}; \
|
|
-fi
|
|
- if test -x ./apgbfm; then \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APG_BIN_DIR}; \
|
|
-./mkinstalldirs ${INSTALL_PREFIX}${APG_MAN_DIR}; \
|
|
-./install-sh -c -m 0755 -o root -g ${FIND_GROUP} ./apgbfm ${INSTALL_PREFIX}${APG_BIN_DIR}; \
|
|
-./install-sh -c -m 0444 ./doc/man/apgbfm.1 ${INSTALL_PREFIX}${APG_MAN_DIR}; \
|
|
-fi
|
|
+ ${BSD_INSTALL_PROGRAM} apg ${DESTDIR}${PREFIX}/bin
|
|
+ ${BSD_INSTALL_MAN} doc/man/apg.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
+ ${BSD_INSTALL_PROGRAM} apgd ${DESTDIR}${PREFIX}/sbin
|
|
+ ${BSD_INSTALL_MAN} doc/man/apgd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
+ ${BSD_INSTALL_PROGRAM} apgbfm ${DESTDIR}${PREFIX}/bin
|
|
+ ${BSD_INSTALL_MAN} doc/man/apgbfm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
install-cygwin:
|
|
if test -x ./apg.exe; then \
|