summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg>2017-02-08 00:07:38 +0000
committerjoerg <joerg>2017-02-08 00:07:38 +0000
commit68ca176d0b744e7501a224b7ea9da860a89fdb35 (patch)
treed87d7d1c1186f526af3fb5187dd1189e35cafddd /security
parent5bed0debc9d1499e3c89404d8df948d2bdad0269 (diff)
downloadpkgsrc-68ca176d0b744e7501a224b7ea9da860a89fdb35.tar.gz
Don't force unaligned memory use. Bump revision.
Diffstat (limited to 'security')
-rw-r--r--security/pam-af/Makefile4
-rw-r--r--security/pam-af/distinfo3
-rw-r--r--security/pam-af/patches/patch-common_pam__af.h40
3 files changed, 44 insertions, 3 deletions
diff --git a/security/pam-af/Makefile b/security/pam-af/Makefile
index 51594f1d8be..35bd7daa52a 100644
--- a/security/pam-af/Makefile
+++ b/security/pam-af/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2015/03/15 18:31:52 hiramatsu Exp $
+# $NetBSD: Makefile,v 1.15 2017/02/08 00:07:38 joerg Exp $
DISTNAME= pam_af-1.0.2
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= http://mbsd.msk.ru/dist/
EXTRACT_SUFX= .tar.bz2
diff --git a/security/pam-af/distinfo b/security/pam-af/distinfo
index 80f27b6d602..44246963daf 100644
--- a/security/pam-af/distinfo
+++ b/security/pam-af/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2015/11/04 01:17:59 agc Exp $
+$NetBSD: distinfo,v 1.12 2017/02/08 00:07:38 joerg Exp $
SHA1 (pam_af-1.0.2.tar.bz2) = e3856a33d79beafa8d4e8cb44b19cbf79a3ed422
RMD160 (pam_af-1.0.2.tar.bz2) = 0c4163d811ba83de32e9b4633780ac76c8d10d8f
@@ -7,4 +7,5 @@ Size (pam_af-1.0.2.tar.bz2) = 17991 bytes
SHA1 (patch-aa) = 9c8e44c7b25e268777967c742a6946abe0c80316
SHA1 (patch-ab) = 2d42056f2972a34d2ec681f3c408cfdfc7c26d67
SHA1 (patch-ad) = 0f46fecfec3b920a08e2c22c14ada368214d6a69
+SHA1 (patch-common_pam__af.h) = 026b303116b80cb48987c24b5f48677e7581a346
SHA1 (patch-pam__af__tool_pam__af__tool.c) = af061bc8766cbf8406dd7a8ce95240e708085bba
diff --git a/security/pam-af/patches/patch-common_pam__af.h b/security/pam-af/patches/patch-common_pam__af.h
new file mode 100644
index 00000000000..c175cd8ac55
--- /dev/null
+++ b/security/pam-af/patches/patch-common_pam__af.h
@@ -0,0 +1,40 @@
+$NetBSD: patch-common_pam__af.h,v 1.1 2017/02/08 00:07:38 joerg Exp $
+
+Don't pessimize the build or even create unaligned access by forcing the
+structures to be packed.
+
+--- common/pam_af.h.orig 2017-01-08 20:09:41.718970211 +0000
++++ common/pam_af.h
+@@ -90,14 +90,6 @@
+ # define _PATH_BSHELL DEFSHL
+ #endif
+
+-#ifndef __packed
+-# ifdef __GNUC__
+-# define __packed __attribute__((packed))
+-# else /* __GNUC__ */
+-# define __packed
+-# endif /* __GNUC__ */
+-#endif
+-
+ #ifndef __unused
+ # ifdef __GNUC__
+ # define __unused __attribute__((unused))
+@@ -114,7 +106,7 @@ typedef struct hostrec {
+ unsigned long num;
+ time_t last_attempt;
+ unsigned long locked_for;
+-} __packed hostrec_t;
++} hostrec_t;
+
+ typedef struct hostrule {
+ uint mask;
+@@ -122,7 +114,7 @@ typedef struct hostrule {
+ long locktime;
+ char lock_cmd[MAX_CMD_LEN];
+ char unlock_cmd[MAX_CMD_LEN];
+-} __packed hostrule_t;
++} hostrule_t;
+ #define DEFAULT_ATTEMPTS ULONG_MAX
+ #define DEFAULT_LOCKTIME 0
+ #define DEFRULE "*"