pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Fri Feb 16 07:20:56 UTC 2018

Modified Files:
        pkgsrc/security: Makefile
Added Files:
        pkgsrc/security/duo-unix: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/security/duo-unix/patches: patch-login__duo_Makefile.in

Log Message:
Import duo_unix 1.10.1 as security/duo_unix.

Duo two-factor authentication for Unix systems.


To generate a diff of this commit:
cvs rdiff -u -r1.669 -r1.670 pkgsrc/security/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/duo-unix/DESCR \
    pkgsrc/security/duo-unix/Makefile pkgsrc/security/duo-unix/PLIST \
    pkgsrc/security/duo-unix/distinfo pkgsrc/security/duo-unix/options.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/duo-unix/patches/patch-login__duo_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/Makefile
diff -u pkgsrc/security/Makefile:1.669 pkgsrc/security/Makefile:1.670
--- pkgsrc/security/Makefile:1.669      Wed Jan 31 11:37:16 2018
+++ pkgsrc/security/Makefile    Fri Feb 16 07:20:56 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.669 2018/01/31 11:37:16 markd Exp $
+# $NetBSD: Makefile,v 1.670 2018/02/16 07:20:56 fhajny Exp $
 #
 
 COMMENT=       Security tools
@@ -70,6 +70,7 @@ SUBDIR+=      dnssec-tools
 SUBDIR+=       dropbear
 SUBDIR+=       dsniff
 SUBDIR+=       dsniff-nox11
+SUBDIR+=       duo-unix
 SUBDIR+=       easy-rsa
 SUBDIR+=       ecap_clamav_adapter
 SUBDIR+=       egd

Added files:

Index: pkgsrc/security/duo-unix/DESCR
diff -u /dev/null pkgsrc/security/duo-unix/DESCR:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/DESCR      Fri Feb 16 07:20:56 2018
@@ -0,0 +1 @@
+Duo two-factor authentication for Unix systems.
Index: pkgsrc/security/duo-unix/Makefile
diff -u /dev/null pkgsrc/security/duo-unix/Makefile:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/Makefile   Fri Feb 16 07:20:56 2018
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2018/02/16 07:20:56 fhajny Exp $
+#
+
+DISTNAME=      duo_unix-1.10.1
+PKGNAME=       ${DISTNAME:S/_/-/}
+CATEGORIES=    security
+MASTER_SITES=  https://dl.duosecurity.com/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.duosecurity.com/
+COMMENT=       Duo two-factor authentication for Unix systems
+LICENSE=       gnu-gpl-v2
+
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake pkg-config
+GNU_CONFIGURE= yes
+
+PKGCONFIG_OVERRIDE+=   lib/libduo.pc.in
+
+.include "options.mk"
+
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+
+INSTALL_MAKE_FLAGS+=   sysconfdir=${PREFIX}/share/examples/duo-unix
+
+INSTALLATION_DIRS=     share/examples/duo-unix
+
+CONF_FILES_PERMS+=     share/examples/duo-unix/login_duo.conf  \
+                       ${PKG_SYSCONFDIR}/login_duo.conf        \
+                       ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0400
+
+SPECIAL_PERMS+=                sbin/login_duo ${SETUID_ROOT_PERMS}
+
+SUBST_CLASSES+=                man
+SUBST_STAGE.man=       post-patch
+SUBST_MESSAGE.man=     Fixing sysconfdir references
+SUBST_FILES.man=       login_duo/login_duo.8 pam_duo/pam_duo.8
+SUBST_SED.man=         -e 's,/etc/duo,${PKG_SYSCONFDIR},g'
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/security/duo-unix/PLIST
diff -u /dev/null pkgsrc/security/duo-unix/PLIST:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/PLIST      Fri Feb 16 07:20:56 2018
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1 2018/02/16 07:20:56 fhajny Exp $
+include/duo.h
+include/shell.h
+include/util.h
+lib/pkgconfig/libduo.pc
+${PLIST.pam}lib/security/pam_duo.la
+man/man3/duo.3
+man/man8/login_duo.8
+${PLIST.pam}man/man8/pam_duo.8
+sbin/login_duo
+share/doc/duo_unix/AUTHORS
+share/doc/duo_unix/CHANGES
+share/doc/duo_unix/LICENSE
+share/doc/duo_unix/README
+share/examples/duo-unix/login_duo.conf
+${PLIST.pam}share/examples/duo-unix/pam_duo.conf
Index: pkgsrc/security/duo-unix/distinfo
diff -u /dev/null pkgsrc/security/duo-unix/distinfo:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/distinfo   Fri Feb 16 07:20:56 2018
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/02/16 07:20:56 fhajny Exp $
+
+SHA1 (duo_unix-1.10.1.tar.gz) = 66d08f2286c7f7877ec4bb6770b939e01f7dfb96
+RMD160 (duo_unix-1.10.1.tar.gz) = d22f3ffa6ac2578e5ebcc50945270d5f903c8cde
+SHA512 (duo_unix-1.10.1.tar.gz) = 45e246e7665e8d9c70ce43eed632371b079e9aec20f6c5d771a7d1de80a0f75d987fb88002de719358511d92d05b27824e539af53836af75a0939e59aae37359
+Size (duo_unix-1.10.1.tar.gz) = 472431 bytes
+SHA1 (patch-login__duo_Makefile.in) = 8b9079d8ea6a9a1f2a23c5c9146a045789517378
Index: pkgsrc/security/duo-unix/options.mk
diff -u /dev/null pkgsrc/security/duo-unix/options.mk:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/options.mk Fri Feb 16 07:20:56 2018
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1 2018/02/16 07:20:56 fhajny Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.duo-unix
+PKG_SUPPORTED_OPTIONS+=        pam
+PKG_SUGGESTED_OPTIONS= pam
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   pam
+
+.if !empty(PKG_OPTIONS:Mpam)
+PLIST.pam=             yes
+CONFIGURE_ARGS+=       --with-pam=${PREFIX}/lib/security
+CONF_FILES_PERMS+=     share/examples/duo-unix/pam_duo.conf    \
+                       ${PKG_SYSCONFDIR}/pam_duo.conf  \
+                       ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0400
+.  include "../../mk/pam.buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --without-pam
+.endif

Index: pkgsrc/security/duo-unix/patches/patch-login__duo_Makefile.in
diff -u /dev/null pkgsrc/security/duo-unix/patches/patch-login__duo_Makefile.in:1.1
--- /dev/null   Fri Feb 16 07:20:56 2018
+++ pkgsrc/security/duo-unix/patches/patch-login__duo_Makefile.in       Fri Feb 16 07:20:56 2018
@@ -0,0 +1,15 @@
+$NetBSD: patch-login__duo_Makefile.in,v 1.1 2018/02/16 07:20:56 fhajny Exp $
+
+Secure a setuid binary.
+
+--- login_duo/Makefile.in.orig 2017-08-15 19:31:47.000000000 +0000
++++ login_duo/Makefile.in
+@@ -712,7 +712,7 @@ uninstall-man: uninstall-man8
+ 
+ install-exec-hook:
+       -chown root $(DESTDIR)$(sbindir)/login_duo && \
+-       chmod 4755 $(DESTDIR)$(sbindir)/login_duo
++       chmod 4555 $(DESTDIR)$(sbindir)/login_duo
+ 
+ install-data-local:
+       $(MKDIR_P) $(DESTDIR)$(sysconfdir)



Home | Main Index | Thread Index | Old Index