From owner-svn-ports-all@freebsd.org Tue Jul 3 13:09:13 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64A4D101B68B; Tue, 3 Jul 2018 13:09:13 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 182E98068F; Tue, 3 Jul 2018 13:09:13 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ECC331C769; Tue, 3 Jul 2018 13:09:12 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w63D9CNt054637; Tue, 3 Jul 2018 13:09:12 GMT (envelope-from timur@FreeBSD.org) Received: (from timur@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w63D9ANl054626; Tue, 3 Jul 2018 13:09:10 GMT (envelope-from timur@FreeBSD.org) Message-Id: <201807031309.w63D9ANl054626@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: timur set sender to timur@FreeBSD.org using -f From: "Timur I. Bakeyev" Date: Tue, 3 Jul 2018 13:09:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473829 - in head/devel: nss_wrapper pam_wrapper pam_wrapper/files resolv_wrapper socket_wrapper uid_wrapper X-SVN-Group: ports-head X-SVN-Commit-Author: timur X-SVN-Commit-Paths: in head/devel: nss_wrapper pam_wrapper pam_wrapper/files resolv_wrapper socket_wrapper uid_wrapper X-SVN-Commit-Revision: 473829 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jul 2018 13:09:13 -0000 Author: timur Date: Tue Jul 3 13:09:10 2018 New Revision: 473829 URL: https://svnweb.freebsd.org/changeset/ports/473829 Log: Incorporate mat@ cleanup suggrestions Added: head/devel/pam_wrapper/files/ head/devel/pam_wrapper/files/python-detection.patch (contents, props changed) head/devel/pam_wrapper/pkg-plist (contents, props changed) Modified: head/devel/nss_wrapper/Makefile head/devel/nss_wrapper/pkg-descr head/devel/pam_wrapper/Makefile head/devel/pam_wrapper/pkg-descr head/devel/resolv_wrapper/Makefile head/devel/resolv_wrapper/pkg-descr head/devel/socket_wrapper/Makefile head/devel/socket_wrapper/pkg-descr head/devel/uid_wrapper/Makefile head/devel/uid_wrapper/pkg-descr Modified: head/devel/nss_wrapper/Makefile ============================================================================== --- head/devel/nss_wrapper/Makefile Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/nss_wrapper/Makefile Tue Jul 3 13:09:10 2018 (r473829) @@ -14,14 +14,14 @@ USES= cmake:outsource perl5 shebangfix USE_PERL5= run USE_LDCONFIG= yes -CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" +CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST OPTIONS_DEFAULT= TEST -TEST_TARGET= test +TEST_TEST_TARGET= test TEST_CMAKE_BOOL= UNIT_TESTING -TEST_BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka +TEST_BUILD_DEPENDS= cmocka>=1.1.1:sysutils/cmocka SHEBANG_FILES= nss_wrapper.pl Modified: head/devel/nss_wrapper/pkg-descr ============================================================================== --- head/devel/nss_wrapper/pkg-descr Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/nss_wrapper/pkg-descr Tue Jul 3 13:09:10 2018 (r473829) @@ -14,4 +14,4 @@ with socket_wrapper. - Network name resolution using a hosts file. - Loading and testing of NSS modules. -WWW: https://cwrap.org/ +WWW: https://cwrap.org/nss_wrapper.html Modified: head/devel/pam_wrapper/Makefile ============================================================================== --- head/devel/pam_wrapper/Makefile Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/pam_wrapper/Makefile Tue Jul 3 13:09:10 2018 (r473829) @@ -2,6 +2,7 @@ PORTNAME= pam_wrapper PORTVERSION= 1.0.6 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= SAMBA/cwrap @@ -10,38 +11,18 @@ COMMENT= Preloadable wrapper to test PAM applications LICENSE= GPLv3 +EXTRA_PATCHES= ${PATCHDIR}/python-detection.patch:-p1 + USES= cmake:outsource python:2.7+ USE_LDCONFIG= yes -CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" +CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST OPTIONS_DEFAULT= TEST -TEST_TARGET= test +TEST_TEST_TARGET= test TEST_CMAKE_BOOL= UNIT_TESTING -TEST_BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka - -PLIST_FILES= libdata/pkgconfig/pam_wrapper.pc \ - libdata/pkgconfig/libpamtest.pc \ - lib/cmake/pam_wrapper/pam_wrapper-config-version.cmake \ - lib/cmake/pam_wrapper/pam_wrapper-config.cmake \ - lib/cmake/libpamtest/libpamtest-config.cmake \ - lib/cmake/libpamtest/libpamtest-config-version.cmake \ - lib/libpam_wrapper.so.0.0.3 \ - lib/libpam_wrapper.so.0 \ - lib/libpam_wrapper.so \ - lib/libpamtest.so.0.0.3 \ - lib/libpamtest.so.0 \ - lib/libpamtest.so \ - lib/pam_wrapper/pam_matrix.so \ - lib/pam_wrapper/pam_get_items.so \ - lib/pam_wrapper/pam_set_items.so \ - ${PYTHON_SITELIBDIR}/pypamtest.so \ - include/libpamtest.h \ - man/man1/pam_wrapper.1.gz \ - man/man8/pam_matrix.8.gz \ - man/man8/pam_get_items.8.gz \ - man/man8/pam_set_items.8.gz +TEST_BUILD_DEPENDS= cmocka>=1.1.1:sysutils/cmocka .include Added: head/devel/pam_wrapper/files/python-detection.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pam_wrapper/files/python-detection.patch Tue Jul 3 13:09:10 2018 (r473829) @@ -0,0 +1,120 @@ +From 6d25aa0f94a8fb7f263b88eb3b0c0d15c1d88ed6 Mon Sep 17 00:00:00 2001 +From: Andreas Schneider +Date: Tue, 3 Jul 2018 11:33:04 +0200 +Subject: cmake: Fix python2 and python3 detection + +Signed-off-by: Andreas Schneider +--- + src/python/python2/CMakeLists.txt | 40 ++++++++++++++++++++++++--------------- + src/python/python3/CMakeLists.txt | 40 ++++++++++++++++++++++++--------------- + 2 files changed, 50 insertions(+), 30 deletions(-) + +diff --git a/src/python/python2/CMakeLists.txt b/src/python/python2/CMakeLists.txt +index faceec3..02b4063 100644 +--- a/src/python/python2/CMakeLists.txt ++++ b/src/python/python2/CMakeLists.txt +@@ -1,23 +1,33 @@ + project(python2-pamtest C) + +-unset(PYTHON_EXECUTABLE CACHE) +-unset(PYTHON_INCLUDE_DIR CACHE) +-unset(PYTHON_LIBRARY CACHE) +-unset(PYTHON_SITELIB CACHE) +-unset(PYTHONLIBS_FOUND CACHE) +-unset(PYTHONLIBS_VERSION_STRING CACHE) ++if (NOT PYTHON2_LIBRARY) ++ unset(PYTHON_EXECUTABLE CACHE) ++ unset(PYTHON_INCLUDE_DIR CACHE) ++ unset(PYTHON_LIBRARY CACHE) ++ unset(PYTHON_SITELIB CACHE) ++ unset(PYTHONLIBS_FOUND CACHE) ++ unset(PYTHONLIBS_VERSION_STRING CACHE) + +-set(Python_ADDITIONAL_VERSIONS 2.7 2.6) +-find_package(PythonLibs) +-find_package(PythonInterp) +-find_package(PythonSiteLibs) ++ find_package(PythonLibs 2) ++ find_package(PythonInterp 2) ++ find_package(PythonSiteLibs 2) + +-if (PYTHONLIBS_FOUND) +- set(PYTHON2_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "PYTHON2_EXECUTABLE") +- set(PYTHON2_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) +- set(PYTHON2_LIBRARY ${PYTHON_LIBRARY}) +- set(PYTHON2_SITELIB ${PYTHON_SITELIB}) ++ if (PYTHONLIBS_FOUND) ++ set(PYTHON2_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "PYTHON2_EXECUTABLE") ++ set(PYTHON2_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) ++ set(PYTHON2_LIBRARY ${PYTHON_LIBRARY}) ++ set(PYTHON2_SITELIB ${PYTHON_SITELIB}) ++ endif() + ++ unset(PYTHON_EXECUTABLE CACHE) ++ unset(PYTHON_INCLUDE_DIR CACHE) ++ unset(PYTHON_LIBRARY CACHE) ++ unset(PYTHON_SITELIB CACHE) ++ unset(PYTHONLIBS_FOUND CACHE) ++ unset(PYTHONLIBS_VERSION_STRING CACHE) ++endif() ++ ++if (PYTHON2_INCLUDE_DIR AND PYTHON2_LIBRARY AND PYTHON2_SITELIB) + include_directories(${CMAKE_BINARY_DIR}) + include_directories(${pam_wrapper-headers_DIR}) + include_directories(${PYTHON2_INCLUDE_DIR}) +diff --git a/src/python/python3/CMakeLists.txt b/src/python/python3/CMakeLists.txt +index 1e1599b..1a61303 100644 +--- a/src/python/python3/CMakeLists.txt ++++ b/src/python/python3/CMakeLists.txt +@@ -1,23 +1,33 @@ + project(python3-pamtest C) + +-unset(PYTHON_EXECUTABLE CACHE) +-unset(PYTHON_INCLUDE_DIR CACHE) +-unset(PYTHON_LIBRARY CACHE) +-unset(PYTHON_SITELIB CACHE) +-unset(PYTHONLIBS_FOUND CACHE) +-unset(PYTHONLIBS_VERSION_STRING CACHE) ++if (NOT PYTHON3_LIBRARY) ++ unset(PYTHON_EXECUTABLE CACHE) ++ unset(PYTHON_INCLUDE_DIR CACHE) ++ unset(PYTHON_LIBRARY CACHE) ++ unset(PYTHON_SITELIB CACHE) ++ unset(PYTHONLIBS_FOUND CACHE) ++ unset(PYTHONLIBS_VERSION_STRING CACHE) + +-set(Python_ADDITIONAL_VERSIONS 3.8 3.7 3.6) +-find_package(PythonLibs) +-find_package(PythonInterp) +-find_package(PythonSiteLibs) ++ find_package(PythonLibs 3) ++ find_package(PythonInterp 3) ++ find_package(PythonSiteLibs 3) + +-if (PYTHONLIBS_FOUND) +- set(PYTHON3_LIBRARY ${PYTHON_LIBRARY}) +- set(PYTHON3_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) +- set(PYTHON3_SITELIB ${PYTHON_SITELIB}) +- set(PYTHON3_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "PYTHON3_EXECUTABLE") ++ if (PYTHONLIBS_FOUND) ++ set(PYTHON3_LIBRARY ${PYTHON_LIBRARY}) ++ set(PYTHON3_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}) ++ set(PYTHON3_SITELIB ${PYTHON_SITELIB}) ++ set(PYTHON3_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "PYTHON3_EXECUTABLE") ++ endif() + ++ unset(PYTHON_EXECUTABLE CACHE) ++ unset(PYTHON_INCLUDE_DIR CACHE) ++ unset(PYTHON_LIBRARY CACHE) ++ unset(PYTHON_SITELIB CACHE) ++ unset(PYTHONLIBS_FOUND CACHE) ++ unset(PYTHONLIBS_VERSION_STRING CACHE) ++endif() ++ ++if (PYTHON3_INCLUDE_DIR AND PYTHON3_LIBRARY AND PYTHON3_SITELIB) + include_directories(${CMAKE_BINARY_DIR}) + include_directories(${pam_wrapper-headers_DIR}) + include_directories(${PYTHON3_INCLUDE_DIR}) +-- +cgit v1.1 + Modified: head/devel/pam_wrapper/pkg-descr ============================================================================== --- head/devel/pam_wrapper/pkg-descr Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/pam_wrapper/pkg-descr Tue Jul 3 13:09:10 2018 (r473829) @@ -5,4 +5,4 @@ we have implemented. It simplifies testing of modules. with the cmocka unit testing framework or you can use the provided Python bindings to write tests for your module in Python. -WWW: https://cwrap.org/ +WWW: https://cwrap.org/pam_wrapper.html Added: head/devel/pam_wrapper/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pam_wrapper/pkg-plist Tue Jul 3 13:09:10 2018 (r473829) @@ -0,0 +1,21 @@ +libdata/pkgconfig/pam_wrapper.pc +libdata/pkgconfig/libpamtest.pc +lib/cmake/pam_wrapper/pam_wrapper-config-version.cmake +lib/cmake/pam_wrapper/pam_wrapper-config.cmake +lib/cmake/libpamtest/libpamtest-config.cmake +lib/cmake/libpamtest/libpamtest-config-version.cmake +lib/libpam_wrapper.so.0.0.3 +lib/libpam_wrapper.so.0 +lib/libpam_wrapper.so +lib/libpamtest.so.0.0.3 +lib/libpamtest.so.0 +lib/libpamtest.so +lib/pam_wrapper/pam_matrix.so +lib/pam_wrapper/pam_get_items.so +lib/pam_wrapper/pam_set_items.so +%%PYTHON_SITELIBDIR%%/pypamtest.so +include/libpamtest.h +man/man1/pam_wrapper.1.gz +man/man8/pam_matrix.8.gz +man/man8/pam_get_items.8.gz +man/man8/pam_set_items.8.gz Modified: head/devel/resolv_wrapper/Makefile ============================================================================== --- head/devel/resolv_wrapper/Makefile Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/resolv_wrapper/Makefile Tue Jul 3 13:09:10 2018 (r473829) @@ -13,14 +13,14 @@ LICENSE= GPLv3 USES= cmake:outsource USE_LDCONFIG= yes -CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" +CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST OPTIONS_DEFAULT= TEST -TEST_TARGET= test +TEST_TEST_TARGET= test TEST_CMAKE_BOOL= UNIT_TESTING -TEST_BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka +TEST_BUILD_DEPENDS= cmocka>=1.1.1:sysutils/cmocka PLIST_FILES= libdata/pkgconfig/resolv_wrapper.pc \ lib/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake \ Modified: head/devel/resolv_wrapper/pkg-descr ============================================================================== --- head/devel/resolv_wrapper/pkg-descr Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/resolv_wrapper/pkg-descr Tue Jul 3 13:09:10 2018 (r473829) @@ -7,4 +7,4 @@ and return valid responses to your application. - Redirects name queries to the nameservers specified in your resolv.conf - Can fake DNS queries using a simple formatted DNS hosts file. -WWW: https://cwrap.org/ +WWW: https://cwrap.org/resolv_wrapper.html Modified: head/devel/socket_wrapper/Makefile ============================================================================== --- head/devel/socket_wrapper/Makefile Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/socket_wrapper/Makefile Tue Jul 3 13:09:10 2018 (r473829) @@ -13,14 +13,14 @@ LICENSE= GPLv3 USES= cmake:outsource USE_LDCONFIG= yes -CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" +CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST OPTIONS_DEFAULT= TEST -TEST_TARGET= test +TEST_TEST_TARGET= test TEST_CMAKE_BOOL= UNIT_TESTING -TEST_BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka +TEST_BUILD_DEPENDS= cmocka>=1.1.1:sysutils/cmocka PLIST_FILES= libdata/pkgconfig/socket_wrapper.pc \ lib/cmake/socket_wrapper/socket_wrapper-config-version.cmake \ Modified: head/devel/socket_wrapper/pkg-descr ============================================================================== --- head/devel/socket_wrapper/pkg-descr Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/socket_wrapper/pkg-descr Tue Jul 3 13:09:10 2018 (r473829) @@ -7,4 +7,4 @@ testing of complex network configurations. - Support for IPv4 and IPv6 socket and addressing emulation. - Ablility to capture network traffic in pcap format. -WWW: https://cwrap.org/ +WWW: https://cwrap.org/socket_wrapper.html Modified: head/devel/uid_wrapper/Makefile ============================================================================== --- head/devel/uid_wrapper/Makefile Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/uid_wrapper/Makefile Tue Jul 3 13:09:10 2018 (r473829) @@ -13,14 +13,14 @@ LICENSE= GPLv3 USES= cmake:outsource USE_LDCONFIG= yes -CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" +CMAKE_ARGS= -DMAN_INSTALL_DIR:PATH="${PREFIX}/man" OPTIONS_DEFINE= TEST OPTIONS_DEFAULT= TEST -TEST_TARGET= test +TEST_TEST_TARGET= test TEST_CMAKE_BOOL= UNIT_TESTING -TEST_BUILD_DEPENDS+= cmocka>=1.1.1:sysutils/cmocka +TEST_BUILD_DEPENDS= cmocka>=1.1.1:sysutils/cmocka PLIST_FILES= libdata/pkgconfig/uid_wrapper.pc \ lib/cmake/uid_wrapper/uid_wrapper-config-version.cmake \ Modified: head/devel/uid_wrapper/pkg-descr ============================================================================== --- head/devel/uid_wrapper/pkg-descr Tue Jul 3 13:08:59 2018 (r473828) +++ head/devel/uid_wrapper/pkg-descr Tue Jul 3 13:09:10 2018 (r473829) @@ -14,4 +14,4 @@ to the connection user and do file operations. uid_wra the application letting it believe it is operating as root and even switching between UIDs and GIDs as needed. -WWW: https://cwrap.org/ +WWW: https://cwrap.org/uid_wrapper.html