| 1 |
Description: Makefile customizations for Debian package |
| 2 |
Activate PRNG X9.17 with SHA-1 |
| 3 |
activate libraries needed for build on Linux |
| 4 |
set correct install paths |
| 5 |
add dpkg-buildflags for hardening |
| 6 |
Origin: vendor |
| 7 |
Last-Update: 2024-05-10 |
| 8 |
Forwarded: not-needed |
| 9 |
Last-Update: 2024-08-25 |
| 10 |
--- a/Makefile |
| 11 |
+++ b/Makefile |
| 12 |
@@ -6,7 +6,7 @@ CC = gcc |
| 13 |
################################################################## |
| 14 |
# Compilation flags |
| 15 |
# You should comment the line below for AIX+native cc |
| 16 |
-FLAGS = -Wall |
| 17 |
+FLAGS = -Wall $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get LDFLAGS) |
| 18 |
|
| 19 |
################################################################## |
| 20 |
# Libraries |
| 21 |
@@ -34,16 +34,16 @@ CRYPTED_PASS = APG_USE_CRYPT |
| 22 |
# DO NOT EDIT THE LINE BELOW !!! |
| 23 |
USE_SHA = APG_USE_SHA |
| 24 |
# Coment this if you want to use PRNG X9.17 with SHA-1 |
| 25 |
-USE_SHA = APG_DONOTUSE_SHA |
| 26 |
+# USE_SHA = APG_DONOTUSE_SHA |
| 27 |
|
| 28 |
################################################################## |
| 29 |
# Directories |
| 30 |
# Install dirs |
| 31 |
INSTALL_PREFIX = /usr/local |
| 32 |
APG_BIN_DIR = /bin |
| 33 |
-APG_MAN_DIR = /man/man1 |
| 34 |
+APG_MAN_DIR = /share/man/man1 |
| 35 |
APGD_BIN_DIR = /sbin |
| 36 |
-APGD_MAN_DIR = /man/man8 |
| 37 |
+APGD_MAN_DIR = /share/man/man8 |
| 38 |
|
| 39 |
#################################################################### |
| 40 |
# If you plan to install APG daemon you should look at lines below # |
| 41 |
@@ -59,7 +59,7 @@ APGD_MAN_DIR = /man/man8 |
| 42 |
# Linux |
| 43 |
# |
| 44 |
# Uncoment line below for LINUX |
| 45 |
-#CS_LIBS = -lnsl |
| 46 |
+CS_LIBS = -lnsl |
| 47 |
|
| 48 |
#################################################################### |
| 49 |
# Solaris |
| 50 |
@@ -75,7 +75,7 @@ APGD_MAN_DIR = /man/man8 |
| 51 |
|
| 52 |
# ====== YOU DO NOT NEED TO MODIFY ANYTHING BELOW THIS LINE ====== |
| 53 |
# Find group ID for user root |
| 54 |
-FIND_GROUP = `grep '^root:' /etc/passwd | awk -F: '{ print $$4 }'` |
| 55 |
+FIND_GROUP = `getent passwd root | awk -F: '{ print $$4 }'` |
| 56 |
|
| 57 |
PROGNAME = apg |
| 58 |
CS_PROGNAME = apgd |