mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- Fix PYTHON OPTION
- Require python 3.5+ PR: 249298 Submitted by: John Hein <jcfyecrayz@liamekaens.com>
This commit is contained in:
parent
4f324cb5a4
commit
713b96a409
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548623
@ -77,7 +77,7 @@ TLS_CONFIGURE_ON= --with-security-modules=tsm --with-transports=TLSTCP,DTLSUDP
|
||||
.if ${PORT_OPTIONS:MPYTHON}
|
||||
PYDISTUTILS_PKGNAME?= netsnmp-python
|
||||
PYDISTUTILS_PKGVERSION?= 1.0a1
|
||||
USES+= python:2.7
|
||||
USES+= python:3.5+
|
||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
|
||||
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
|
||||
CONFIGURE_ARGS+=--with-python-modules
|
||||
|
11
net-mgmt/net-snmp/files/patch-Makefile.in
Normal file
11
net-mgmt/net-snmp/files/patch-Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in.orig 2020-08-14 21:41:47 UTC
|
||||
+++ Makefile.in
|
||||
@@ -235,7 +235,7 @@ pythonmodules: subdirs
|
||||
fi
|
||||
|
||||
pythoninstall:
|
||||
- @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir --root=$(DESTDIR) --prefix=$(prefix)) ; \
|
||||
+ @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir --root=$(DESTDIR) --prefix=$(prefix) ${PYDISTUTILS_INSTALLARGS}); \
|
||||
if test $$? != 0 ; then \
|
||||
exit 1 ; \
|
||||
fi
|
@ -617,19 +617,19 @@ sbin/snmptrapd
|
||||
%%DATADIR%%/snmpconf-data/snmptrapd-data/traphandle
|
||||
@dir /var/agentx
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.py
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__init__.pyo
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/__pycache__/client.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.py
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client.pyo
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/client_intf.so
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.py
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__init__.pyo
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/test.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/__pycache__/test.cpython-%%PYTHON_SUFFIX%%.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.py
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.pyc
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp/tests/test.pyo
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/PKG-INFO
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/SOURCES.txt
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/dependency_links.txt
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-%%PYDISTUTILS_PKGVERSION%%-py%%PYTHON_VER%%.egg-info/top_level.txt
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/PKG-INFO
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/SOURCES.txt
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/dependency_links.txt
|
||||
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/netsnmp_python-1.0a1-py%%PYTHON_VER%%.egg-info/top_level.txt
|
||||
|
Loading…
Reference in New Issue
Block a user