Value of _FILE_OFFSET_BITS corrected. Disabled static linking for Solaris 10 and later (no longer supports static linking).diff -r1.32 -r1.33 pkgsrc/security/aide/Makefile
(fhajny)
@@ -1,23 +1,29 @@ | @@ -1,23 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.32 2010/09/13 13:09:20 pettai Exp $ | 1 | # $NetBSD: Makefile,v 1.33 2012/03/12 14:18:44 fhajny Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= aide-0.15.1 | 4 | DISTNAME= aide-0.15.1 | |
5 | CATEGORIES= security | 5 | CATEGORIES= security | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aide/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aide/} | |
7 | 7 | |||
8 | MAINTAINER= pettai@NetBSD.org | 8 | MAINTAINER= pettai@NetBSD.org | |
9 | HOMEPAGE= http://www.cs.tut.fi/~rammer/aide.html | 9 | HOMEPAGE= http://www.cs.tut.fi/~rammer/aide.html | |
10 | COMMENT= Free intrusion detection system for checking file integrity | 10 | COMMENT= Free intrusion detection system for checking file integrity | |
11 | LICENSE= artistic | 11 | LICENSE= artistic | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 14 | |||
15 | BUILDLINK_API_DEPENDS.mhash?= mhash>=0.8.17 | 15 | BUILDLINK_API_DEPENDS.mhash?= mhash>=0.8.17 | |
16 | 16 | |||
17 | ||||
18 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
19 | USE_TOOLS+= bison flex gmake | 18 | USE_TOOLS+= bison flex gmake | |
20 | 19 | |||
20 | .include "../../mk/bsd.prefs.mk" | |||
21 | ||||
22 | .if ${OPSYS} == "SunOS" && empty(OS_VERSION:M5.[6-9]) | |||
23 | # Since Solaris 10, static linking no longer possible | |||
24 | CONFIGURE_ARGS+= --disable-static | |||
25 | .endif | |||
26 | ||||
21 | .include "../../devel/zlib/buildlink3.mk" | 27 | .include "../../devel/zlib/buildlink3.mk" | |
22 | .include "../../security/mhash/buildlink3.mk" | 28 | .include "../../security/mhash/buildlink3.mk" | |
23 | .include "../../mk/bsd.pkg.mk" | 29 | .include "../../mk/bsd.pkg.mk" |
@@ -1,8 +1,8 @@ | @@ -1,8 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.12 2010/09/19 06:11:04 obache Exp $ | 1 | $NetBSD: distinfo,v 1.13 2012/03/12 14:18:44 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (aide-0.15.1.tar.gz) = c5998c04a223416142323fa1bd18db0936099827 | 3 | SHA1 (aide-0.15.1.tar.gz) = c5998c04a223416142323fa1bd18db0936099827 | |
4 | RMD160 (aide-0.15.1.tar.gz) = 80ea88b1c1496bcca57d2d1cdeecdcdfca0fa5cf | 4 | RMD160 (aide-0.15.1.tar.gz) = 80ea88b1c1496bcca57d2d1cdeecdcdfca0fa5cf | |
5 | Size (aide-0.15.1.tar.gz) = 424970 bytes | 5 | Size (aide-0.15.1.tar.gz) = 424970 bytes | |
6 | SHA1 (patch-ab) = 21bcedc7d2838974f934e9c8a2be7a17920a183d | 6 | SHA1 (patch-ab) = ddfaaf42767ebb6eaab73c33489b7aef19e5b003 | |
7 | SHA1 (patch-ae) = 87c234f8d316117cf766134ca69d6f753c59dd91 | 7 | SHA1 (patch-ae) = 87c234f8d316117cf766134ca69d6f753c59dd91 | |
8 | SHA1 (patch-af) = 70ac8a100e9d601b7ffcaa9d716742d1d947aca7 | 8 | SHA1 (patch-af) = 70ac8a100e9d601b7ffcaa9d716742d1d947aca7 |
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | $NetBSD: patch-ab,v 1.4 2010/09/19 06:11:04 obache Exp $ | 1 | $NetBSD: patch-ab,v 1.5 2012/03/12 14:18:44 fhajny Exp $ | |
2 | 2 | |||
3 | * YACC and LEX are passwd as full path. | 3 | * YACC and LEX are passwd as full path. | |
4 | * static linking is not supported on MacOS X. PR#39058. | 4 | * static linking is not supported on MacOS X. PR#39058. | |
5 | * FILE_OFFSET_BITS corrected | |||
5 | 6 | |||
6 | --- configure.orig 2010-09-10 17:48:04.000000000 +0000 | 7 | --- configure.orig 2010-09-10 17:48:04.000000000 +0000 | |
7 | +++ configure | 8 | +++ configure | |
8 | @@ -4231,10 +4231,6 @@ fi | 9 | @@ -4231,10 +4231,6 @@ fi | |
9 | done | 10 | done | |
10 | test -n "$YACC" || YACC="yacc" | 11 | test -n "$YACC" || YACC="yacc" | |
11 | 12 | |||
12 | -if test "x${YACC}" != "xbison -y"; then | 13 | -if test "x${YACC}" != "xbison -y"; then | |
13 | - echo "AIDE requires GNU bison" | 14 | - echo "AIDE requires GNU bison" | |
14 | - exit 5 | 15 | - exit 5 | |
15 | -fi | 16 | -fi | |
16 | 17 | |||
17 | 18 | |||
@@ -27,13 +28,22 @@ $NetBSD: patch-ab,v 1.4 2010/09/19 06:11 | @@ -27,13 +28,22 @@ $NetBSD: patch-ab,v 1.4 2010/09/19 06:11 | |||
27 | for ac_prog in ld | 28 | for ac_prog in ld | |
28 | do | 29 | do | |
29 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 30 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
30 | @@ -4539,6 +4531,9 @@ if test $ac_cv_c_compiler_gnu = yes; the | 31 | @@ -4539,6 +4531,9 @@ if test $ac_cv_c_compiler_gnu = yes; the | |
31 | ## pic_flag=-Kconform_pic | 32 | ## pic_flag=-Kconform_pic | |
32 | ## fi | 33 | ## fi | |
33 | ;; | 34 | ;; | |
34 | + darwin*) | 35 | + darwin*) | |
35 | + LD_STATIC_FLAG='' | 36 | + LD_STATIC_FLAG='' | |
36 | + ;; | 37 | + ;; | |
37 | *) | 38 | *) | |
38 | ## pic_flag='-fPIC' | 39 | ## pic_flag='-fPIC' | |
39 | ;; | 40 | ;; | |
41 | @@ -6435,7 +6430,7 @@ ac_fn_c_check_func "$LINENO" "lstat64" " | |||
42 | if test "x$ac_cv_func_lstat64" = x""yes; then : | |||
43 | ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" | |||
44 | if test "x$ac_cv_func_stat64" = x""yes; then : | |||
45 | - AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS" | |||
46 | + AIDE_DEFS="$AIDE_DEFS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" | |||
47 | AIDE_LSTAT_FUNC="lstat64" | |||
48 | compoptionstring="${compoptionstring}WITH_LSTAT64\\n" | |||
49 | AIDE_STAT_FUNC="stat64" |