Ubuntu 16.04 4.4.0-31
git sources 9b4215b26e8c468e8e89a23fe0fd10987ba587db from git://git.code.sf.net/p/net-snmp/code
echo -------- echo Cleaning echo -------- cd git-snmp git reset --hard git clean -fxd :/ git checkout master git pull -v --progress --rebase echo ----------- echo Configuring echo ----------- ./configure --with-default-snmp-version="3" --with-sys-contact="noone@no.where" --with-sys-location="Unknown" \ --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" \ --with-systemd \ --with-openssl \ --enable-shared \ --enable-ipv6 \ --with-transports="UDP UDPIPv6 TCP TCPIPv6 TLSTCP" \ --with-security-modules="usm ksm tsm" \ --with-mib-modules="mibII snmpv3mibs agent_mibs notification target utilities disman/event disman/schedule smux host ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable tunnel misc/ipfwacc agentx" \ --with-python-modules \ --disable-embedded-perl \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var echo --------- echo Compiling echo --------- make echo --------------------------------------------- echo "Copying Files to be included in the package" echo --------------------------------------------- cp -v ../description-pak . cp -v ../postinstall-pak . cp -v ../preremove-pak . cp -v ../files-to-be-included-in-the-package.txt . cp -v dist/snmpd.service /lib/systemd/system/ cp -v dist/snmpd.socket /lib/systemd/system/ cp -v dist/snmpd-init.d /etc/init.d/snmpd cp -v dist/snmptrapd.service /lib/systemd/system/ cp -v dist/snmptrapd.socket /lib/systemd/system/ cp -v dist/snmptrapd-init.d /etc/init.d/snmptrapd echo ----------------------- echo Building and Installing echo ----------------------- checkinstall -D --pkgname="snmp" --pkgversion="${release_number}" --pkgrelease="14" --pkgarch="amd64" --pkggroup="net" --maintainer="Jean-Christophe Manciot \<manciot.jeanchristophe@gmail.com\>" --requires="libc6,libcomerr2,libk5crypto3,libkeyutils1,libkrb5-3,libkrb5support0,libncurses5,libnl-3-200,libpci3,libpcre3,libperl5.22,libssl1.0.0,libtinfo5,libudev1,zlib1g" --replaces="libsnmp30,libsnmp-base,libsnmp-dev,python-snmp,snmp-doc,snmpd,snmptrapd,tkmib" --include="files-to-be-included-in-the-package.txt"
with "files-to-be-included-in-the-package.txt" contents:
/lib/systemd/system/snmpd.service
/lib/systemd/system/snmpd.socket
/etc/init.d/snmpd
/lib/systemd/system/snmptrapd.service
/lib/systemd/system/snmptrapd.socket
/etc/init.d/snmptrapd
& postinstall-pak: #!/bin/bash
sudo systemctl start snmpd
sudo systemctl start snmptrapd
sudo systemctl status snmpd
sudo systemctl status snmptrapd
The installation process leads to the following error:
Unpacking snmp (5.8~git20160724.9b4215b2-14) over (5.8~git20160427.8d07349f-14) ...
dpkg: error processing archive /home/actionmystique/Program-Files/Ubuntu/SNMP/git-snmp/snmp_5.8~git20160724.9b4215b2-14_amd64.deb (--install):
trying to overwrite '/usr/local/lib/python2.7/dist-packages/easy-install.pth', which is also in package python-pip 8.1.2
Also, why does it try to overwrite /usr/local/lib/python2.7/dist-packages/easy-install.pth' with "--prefix=/usr"?