ubuntu ndpi/ndpi-dev package (testing)
This commit is contained in:
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
ubuntu
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
#
|
|
||||||
# Change it according to your setup
|
|
||||||
#
|
|
||||||
NDPI_HOME=$(PWD)/../..
|
|
||||||
NDPI_BUILD=${NDPI_HOME}/packages/ubuntu
|
|
||||||
|
|
||||||
all: clean ndpi
|
|
||||||
|
|
||||||
ndpi:
|
|
||||||
\rm -rf ./usr ./debian/tmp ./debian/ndpi-dev
|
|
||||||
mkdir -p ./usr/local ./debian/ndpi-dev
|
|
||||||
mkdir -p ./usr/local/ndpi/lib ./usr/local/ndpi/bin ./ndpi-dev/usr/local/include/ndpi/
|
|
||||||
cd ${NDPI_HOME}; ./autogen.sh; ./configure; make
|
|
||||||
cp $(NDPI_HOME)/lib/libndpi.a $(NDPI_HOME)/lib/libndpi.so* ./usr/local/ndpi/lib/
|
|
||||||
cp $(NDPI_HOME)/example/ndpiReader ./usr/local/ndpi/bin/
|
|
||||||
cp $(NDPI_HOME)/src/include/*.h ndpi-dev/usr/local/include/ndpi/
|
|
||||||
-rm -fr ndpi-dev/usr/local/include/nprobe/ndpi/.svn ndpi-dev/usr/local/include/ndpi/Makefile* ndpi-dev/usr/local/include/ndpi/ndpi_win32.h* ndpi-dev/usr/local/include/ndpi/include
|
|
||||||
-find ./usr/local/lib -name "*.la" -exec /bin/rm {} ';'
|
|
||||||
@echo
|
|
||||||
@find . -name "*~" -exec /bin/rm {} ';'
|
|
||||||
dpkg-buildpackage -rfakeroot -d -us -uc
|
|
||||||
dpkg-sig --sign builder -k 7921DF34 ../ndpi*deb
|
|
||||||
@\rm -f ../ndpi*dsc ../ndpi*.gz ../ndpi*changes
|
|
||||||
@/bin/mv ../ndpi*deb .
|
|
||||||
@echo
|
|
||||||
@echo "Package built."
|
|
||||||
@/bin/ls ndpi*deb
|
|
||||||
@echo "-------------------------------"
|
|
||||||
-dpkg --contents ndpi*amd64.deb
|
|
||||||
@echo "-------------------------------"
|
|
||||||
@echo "-------------------------------"
|
|
||||||
-dpkg --contents ndpi*all.deb
|
|
||||||
@echo "-------------------------------"
|
|
||||||
|
|
||||||
distclean:
|
|
||||||
echo "dummy distclean"
|
|
||||||
|
|
||||||
install:
|
|
||||||
echo "dummy install"
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-rm -rf *~ *deb debian/tmp ./usr
|
|
||||||
+13
-11
@@ -7,17 +7,19 @@ NDPI_BUILD=${NDPI_HOME}/packages/ubuntu
|
|||||||
all: clean ndpi
|
all: clean ndpi
|
||||||
|
|
||||||
ndpi:
|
ndpi:
|
||||||
\rm -rf ./usr ./debian/tmp ./debian/ndpi-dev
|
\rm -rf ./debian/ndpi-tmp ./debian/ndpi-dev-tmp ./debian/ndpi ./debian/ndpi-dev
|
||||||
mkdir -p ./usr/local ./debian/ndpi-dev
|
mkdir -p ./debian/ndpi-tmp ./debian/ndpi-dev-tmp
|
||||||
mkdir -p ./usr/local/ndpi/lib ./usr/local/ndpi/bin ./ndpi-dev/usr/local/include/ndpi/
|
mkdir -p ./debian/ndpi-tmp/usr/local/lib ./debian/ndpi-tmp/usr/local/bin
|
||||||
|
mkdir -p ./debian/ndpi-dev-tmp/usr/local/lib ./debian/ndpi-dev-tmp/usr/local/include/ndpi
|
||||||
cd ${NDPI_HOME}; ./autogen.sh; ./configure; make
|
cd ${NDPI_HOME}; ./autogen.sh; ./configure; make
|
||||||
cp $(NDPI_HOME)/lib/libndpi.a $(NDPI_HOME)/lib/libndpi.so* ./usr/local/ndpi/lib/
|
cp $(NDPI_HOME)/src/lib/libndpi.so* ./debian/ndpi-tmp/usr/local/lib/
|
||||||
cp $(NDPI_HOME)/example/ndpiReader ./usr/local/ndpi/bin/
|
cp $(NDPI_HOME)/src/lib/libndpi.a ./debian/ndpi-dev-tmp/usr/local/lib/
|
||||||
cp $(NDPI_HOME)/src/include/*.h ndpi-dev/usr/local/include/ndpi/
|
cp $(NDPI_HOME)/example/ndpiReader ./debian/ndpi-tmp/usr/local/bin/
|
||||||
-rm -fr ndpi-dev/usr/local/include/nprobe/ndpi/.svn ndpi-dev/usr/local/include/ndpi/Makefile* ndpi-dev/usr/local/include/ndpi/ndpi_win32.h* ndpi-dev/usr/local/include/ndpi/include
|
cp $(NDPI_HOME)/src/include/*.h ./debian/ndpi-dev-tmp/usr/local/include/ndpi/
|
||||||
-find ./usr/local/lib -name "*.la" -exec /bin/rm {} ';'
|
-rm -fr ./debian/ndpi-dev-tmp/usr/local/include/ndpi/ndpi_win32.h*
|
||||||
@echo
|
@echo
|
||||||
@find . -name "*~" -exec /bin/rm {} ';'
|
@find ./debian/ndpi-tmp -name "*~" -exec /bin/rm {} ';'
|
||||||
|
@find ./debian/ndpi-dev-tmp -name "*~" -exec /bin/rm {} ';'
|
||||||
dpkg-buildpackage -rfakeroot -d -us -uc
|
dpkg-buildpackage -rfakeroot -d -us -uc
|
||||||
dpkg-sig --sign builder -k 7921DF34 ../ndpi*deb
|
dpkg-sig --sign builder -k 7921DF34 ../ndpi*deb
|
||||||
@\rm -f ../ndpi*dsc ../ndpi*.gz ../ndpi*changes
|
@\rm -f ../ndpi*dsc ../ndpi*.gz ../ndpi*changes
|
||||||
@@ -26,7 +28,7 @@ ndpi:
|
|||||||
@echo "Package built."
|
@echo "Package built."
|
||||||
@/bin/ls ndpi*deb
|
@/bin/ls ndpi*deb
|
||||||
@echo "-------------------------------"
|
@echo "-------------------------------"
|
||||||
-dpkg --contents ndpi*amd64.deb
|
-dpkg --contents ndpi*@EXTN@.deb
|
||||||
@echo "-------------------------------"
|
@echo "-------------------------------"
|
||||||
@echo "-------------------------------"
|
@echo "-------------------------------"
|
||||||
-dpkg --contents ndpi*all.deb
|
-dpkg --contents ndpi*all.deb
|
||||||
@@ -39,4 +41,4 @@ install:
|
|||||||
echo "dummy install"
|
echo "dummy install"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm -rf *~ *deb debian/tmp ./usr
|
-rm -rf *~ *deb ./usr ./debian/ndpi ./debian/ndpi-dev ./debian/ndpi-tmp ./debian/ndpi-dev-tmp
|
||||||
|
|||||||
Vendored
+42
-25
@@ -583,13 +583,12 @@ PACKAGE_URL=''
|
|||||||
|
|
||||||
ac_subst_vars='LTLIBOBJS
|
ac_subst_vars='LTLIBOBJS
|
||||||
LIBOBJS
|
LIBOBJS
|
||||||
PFRING_SVN_RELEASE
|
GIT_COMMITS
|
||||||
SVN_RELEASE
|
GIT_RELEASE
|
||||||
KERNEL
|
KERNEL
|
||||||
DATE
|
DATE
|
||||||
EXTN
|
EXTN
|
||||||
MACHINE
|
MACHINE
|
||||||
PFRING_VERS
|
|
||||||
NDPI_VERS
|
NDPI_VERS
|
||||||
target_alias
|
target_alias
|
||||||
host_alias
|
host_alias
|
||||||
@@ -610,6 +609,7 @@ infodir
|
|||||||
docdir
|
docdir
|
||||||
oldincludedir
|
oldincludedir
|
||||||
includedir
|
includedir
|
||||||
|
runstatedir
|
||||||
localstatedir
|
localstatedir
|
||||||
sharedstatedir
|
sharedstatedir
|
||||||
sysconfdir
|
sysconfdir
|
||||||
@@ -674,6 +674,7 @@ datadir='${datarootdir}'
|
|||||||
sysconfdir='${prefix}/etc'
|
sysconfdir='${prefix}/etc'
|
||||||
sharedstatedir='${prefix}/com'
|
sharedstatedir='${prefix}/com'
|
||||||
localstatedir='${prefix}/var'
|
localstatedir='${prefix}/var'
|
||||||
|
runstatedir='${localstatedir}/run'
|
||||||
includedir='${prefix}/include'
|
includedir='${prefix}/include'
|
||||||
oldincludedir='/usr/include'
|
oldincludedir='/usr/include'
|
||||||
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
||||||
@@ -926,6 +927,15 @@ do
|
|||||||
| -silent | --silent | --silen | --sile | --sil)
|
| -silent | --silent | --silen | --sile | --sil)
|
||||||
silent=yes ;;
|
silent=yes ;;
|
||||||
|
|
||||||
|
-runstatedir | --runstatedir | --runstatedi | --runstated \
|
||||||
|
| --runstate | --runstat | --runsta | --runst | --runs \
|
||||||
|
| --run | --ru | --r)
|
||||||
|
ac_prev=runstatedir ;;
|
||||||
|
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
||||||
|
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
||||||
|
| --run=* | --ru=* | --r=*)
|
||||||
|
runstatedir=$ac_optarg ;;
|
||||||
|
|
||||||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||||
ac_prev=sbindir ;;
|
ac_prev=sbindir ;;
|
||||||
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||||
@@ -1063,7 +1073,7 @@ fi
|
|||||||
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
||||||
datadir sysconfdir sharedstatedir localstatedir includedir \
|
datadir sysconfdir sharedstatedir localstatedir includedir \
|
||||||
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
||||||
libdir localedir mandir
|
libdir localedir mandir runstatedir
|
||||||
do
|
do
|
||||||
eval ac_val=\$$ac_var
|
eval ac_val=\$$ac_var
|
||||||
# Remove trailing slashes.
|
# Remove trailing slashes.
|
||||||
@@ -1216,6 +1226,7 @@ Fine tuning of the installation directories:
|
|||||||
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
||||||
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
||||||
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
||||||
|
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
||||||
--libdir=DIR object code libraries [EPREFIX/lib]
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
||||||
--includedir=DIR C header files [PREFIX/include]
|
--includedir=DIR C header files [PREFIX/include]
|
||||||
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
||||||
@@ -1670,20 +1681,35 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
NDPI_VERS=`cat ../../config.h | grep -w VERSION | cut -d \" -f 2`
|
|
||||||
PFRING_VERS=`cat $HOME/PF_RING/kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
|
|
||||||
SVN_RELEASE=`svn info ../.. | grep "^Revision"|cut -d " " -f 2`
|
|
||||||
PFRING_SVN_RELEASE=`svn info $HOME/PF_RING | grep "^Revision"|cut -d " " -f 2`
|
|
||||||
MACHINE=`uname -m`
|
|
||||||
|
|
||||||
if test $MACHINE = "x86_64"; then
|
|
||||||
EXTN="amd64"
|
|
||||||
else
|
|
||||||
EXTN="i386"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DATE=`date -R`
|
DATE=`date -R`
|
||||||
KERNEL=`uname -r`
|
KERNEL=`uname -r`
|
||||||
|
MACHINE=`uname -m`
|
||||||
|
SHORT_MACHINE=`uname -m | cut -b1-3`
|
||||||
|
|
||||||
|
EXTN=""
|
||||||
|
if test $MACHINE = "x86_64"; then
|
||||||
|
EXTN="amd64"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "aar"; then
|
||||||
|
EXTN="arm64"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "arm"; then
|
||||||
|
EXTN="armhf"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "mip"; then
|
||||||
|
EXTN="mips"
|
||||||
|
else
|
||||||
|
EXTN="i386"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
NDPI_VERS=`cat ../../configure.ac|grep C_INIT|cut -c 21-|rev|cut -c 3-|rev`
|
||||||
|
GIT_RELEASE=`git rev-parse HEAD`
|
||||||
|
GIT_COMMITS=`git rev-list --all |wc -l | tr -d '[:space:]'`
|
||||||
|
|
||||||
|
ac_config_files="$ac_config_files Makefile debian/changelog debian/files debian/control"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1694,15 +1720,6 @@ KERNEL=`uname -r`
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile"
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files debian/changelog"
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files debian/files"
|
|
||||||
|
|
||||||
ac_config_files="$ac_config_files debian/control"
|
|
||||||
|
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
# tests run on this system so they can be shared between configure
|
# tests run on this system so they can be shared between configure
|
||||||
|
|||||||
@@ -1,32 +1,41 @@
|
|||||||
AC_INIT([Makefile.in], 1.0)
|
AC_INIT([Makefile.in], 1.0)
|
||||||
|
|
||||||
NDPI_VERS=`cat ../../config.h | grep -w VERSION | cut -d \" -f 2`
|
|
||||||
PFRING_VERS=`cat $HOME/PF_RING/kernel/linux/pf_ring.h | grep RING_VERSION | head -1 | cut -d '"' -f 2`
|
|
||||||
SVN_RELEASE=`svn info ../.. | grep "^Revision"|cut -d " " -f 2`
|
|
||||||
PFRING_SVN_RELEASE=`svn info $HOME/PF_RING | grep "^Revision"|cut -d " " -f 2`
|
|
||||||
MACHINE=`uname -m`
|
|
||||||
|
|
||||||
if test $MACHINE = "x86_64"; then
|
|
||||||
EXTN="amd64"
|
|
||||||
else
|
|
||||||
EXTN="i386"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DATE=`date -R`
|
DATE=`date -R`
|
||||||
KERNEL=`uname -r`
|
KERNEL=`uname -r`
|
||||||
|
MACHINE=`uname -m`
|
||||||
|
SHORT_MACHINE=`uname -m | cut -b1-3`
|
||||||
|
|
||||||
|
EXTN=""
|
||||||
|
if test $MACHINE = "x86_64"; then
|
||||||
|
EXTN="amd64"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "aar"; then
|
||||||
|
EXTN="arm64"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "arm"; then
|
||||||
|
EXTN="armhf"
|
||||||
|
else
|
||||||
|
if test $SHORT_MACHINE = "mip"; then
|
||||||
|
EXTN="mips"
|
||||||
|
else
|
||||||
|
EXTN="i386"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
NDPI_VERS=`cat ../../configure.ac|grep C_INIT|cut -c 21-|rev|cut -c 3-|rev`
|
||||||
|
GIT_RELEASE=`git rev-parse HEAD`
|
||||||
|
GIT_COMMITS=`git rev-list --all |wc -l | tr -d '[[:space:]]'`
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Makefile debian/changelog debian/files debian/control])
|
||||||
|
|
||||||
AC_SUBST(NDPI_VERS)
|
AC_SUBST(NDPI_VERS)
|
||||||
AC_SUBST(PFRING_VERS)
|
|
||||||
AC_SUBST(MACHINE)
|
AC_SUBST(MACHINE)
|
||||||
AC_SUBST(EXTN)
|
AC_SUBST(EXTN)
|
||||||
AC_SUBST(DATE)
|
AC_SUBST(DATE)
|
||||||
AC_SUBST(KERNEL)
|
AC_SUBST(KERNEL)
|
||||||
AC_SUBST(SVN_RELEASE)
|
AC_SUBST(GIT_RELEASE)
|
||||||
AC_SUBST(PFRING_SVN_RELEASE)
|
AC_SUBST(GIT_COMMITS)
|
||||||
|
|
||||||
AC_CONFIG_FILES(Makefile)
|
|
||||||
AC_CONFIG_FILES(debian/changelog)
|
|
||||||
AC_CONFIG_FILES(debian/files)
|
|
||||||
AC_CONFIG_FILES(debian/control)
|
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
This directory contains the files needed to build the package
|
This directory contains the files needed to build the package
|
||||||
named 'nprobe' for the Debian GNU/Linux distribution.
|
named 'ndpi' for the Debian GNU/Linux distribution.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ndpi (@NDPI_VERS@-@SVN_RELEASE@) stable; urgency=high
|
ndpi (@NDPI_VERS@-@GIT_COMMITS@) stable; urgency=high
|
||||||
* Last packaged version
|
* Last packaged version
|
||||||
|
|
||||||
-- Luca Deri <deri@ntop.org> @DATE@
|
-- Luca Deri <deri@ntop.org> @DATE@
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1
|
9
|
||||||
|
|||||||
@@ -2,27 +2,25 @@ Source: ndpi
|
|||||||
Section: free
|
Section: free
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Luca Deri <deri@ntop.org>
|
Maintainer: Luca Deri <deri@ntop.org>
|
||||||
Standards-Version: @NDPI_VERSION@
|
Standards-Version: @NDPI_VERS@
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
Build-Conflicts:
|
Build-Conflicts:
|
||||||
|
|
||||||
Package: ndpi
|
Package: ndpi
|
||||||
Architecture: @EXTN@
|
Architecture: @EXTN@
|
||||||
Depends: pfring (=@PFRING_VERS@-@PFRING_SVN_RELEASE@), libnuma
|
Depends: libnuma
|
||||||
Recommends:
|
Recommends:
|
||||||
Suggests:
|
Suggests:
|
||||||
Pre-Depends:
|
Pre-Depends:
|
||||||
Conflicts:
|
Conflicts:
|
||||||
Provides:
|
Provides:
|
||||||
Replaces:
|
Replaces:
|
||||||
Description: A network probe.
|
Description: A L7 DPI library.
|
||||||
|
|
||||||
Package: ndpi-dev
|
Package: ndpi-dev
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ndpi (= ${binary:Version}), ${misc:Depends}
|
Depends: ndpi (= ${binary:Version}), ${misc:Depends}
|
||||||
Conflicts:
|
Conflicts:
|
||||||
Description: development library and header files for ndpi
|
Description: Development library and header files for ndpi
|
||||||
Headers, static libraries, and documentation for the ndpi library
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
usr/local/ndpi
|
|
||||||
|
|||||||
@@ -17,18 +17,7 @@ esac
|
|||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
# Update shared libs
|
|
||||||
echo "/usr/local/lib\n" > /etc/ld.so.conf.d/nprobe.conf
|
|
||||||
echo "Rebuilding ld cache..."
|
echo "Rebuilding ld cache..."
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
echo "Adding the nprobe startup script"
|
|
||||||
update-rc.d nprobe defaults 93 >/dev/null
|
|
||||||
|
|
||||||
echo "Making the /etc/nprobe directory..."
|
|
||||||
mkdir -p /etc/nprobe/
|
|
||||||
|
|
||||||
echo "Making the /var/log/nprobe directory..."
|
|
||||||
mkdir -p /var/log/nprobe
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -2,12 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#\/bin/rm /etc/ld.so.conf.d/nprobe.conf
|
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
# Not needed: upstart does it
|
|
||||||
if [ "$1" = "purge" ] ; then
|
|
||||||
update-rc.d nprobe remove >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# preinst script for nbox
|
# preinst script
|
||||||
#
|
#
|
||||||
# see: dh_installdeb(1)
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
@@ -13,9 +13,6 @@ set -e
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install|upgrade)
|
install|upgrade)
|
||||||
if test -f /usr/local/sbin/nprobe; then
|
|
||||||
rm /usr/local/sbin/nprobe
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
abort-upgrade)
|
abort-upgrade)
|
||||||
@@ -30,6 +27,4 @@ esac
|
|||||||
# dh_installdeb will replace this with shell code automatically
|
# dh_installdeb will replace this with shell code automatically
|
||||||
# generated by other debhelper scripts.
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,14 +1,10 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# Only shut the daemon down if we're really removing the package. If this is
|
|
||||||
# an upgrade, we will instead do a restart in the postinst... this keeps nprobe
|
|
||||||
# from being left shut down for a long time, which could pose problems.
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
upgrade)
|
upgrade)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
/etc/init.d/nprobe stop
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
# export DH_VERBOSE=1
|
export DH_VERBOSE=1
|
||||||
|
|
||||||
#
|
|
||||||
# debian/compat
|
|
||||||
# We should use at least compatibility version 5
|
|
||||||
# but this requires the whole building process
|
|
||||||
# to be remade and this is something we leave
|
|
||||||
# to when we will have more time
|
|
||||||
# http://www.tin.org/bin/man.cgi?section=7&topic=debhelper
|
|
||||||
#
|
|
||||||
|
|
||||||
package=ndpi
|
package=ndpi
|
||||||
|
|
||||||
@@ -37,20 +28,20 @@ binary-indep: build install
|
|||||||
binary-arch: build install
|
binary-arch: build install
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_clean -k
|
dh_prep
|
||||||
|
#dh_clean -k
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
dh_installinit
|
dh_installinit
|
||||||
dh_installman
|
dh_installman
|
||||||
# install the files into debian/tmp.
|
|
||||||
cp -r ./usr/ ./debian/tmp
|
|
||||||
cp -r ./ndpi-dev/* ./debian/ndpi-dev/
|
|
||||||
-find ./debian/tmp -name .svn -exec /bin/rm -rf {} ';'
|
|
||||||
-find ./debian/tmp -executable -type f |xargs strip
|
|
||||||
dh_link
|
dh_link
|
||||||
dh_strip
|
dh_strip
|
||||||
dh_compress
|
dh_compress
|
||||||
dh_fixperms
|
dh_fixperms
|
||||||
dh_installdeb
|
dh_installdeb
|
||||||
|
mkdir -p ./debian/ndpi ./debian/ndpi-dev
|
||||||
|
cp -r ./debian/ndpi-tmp/* ./debian/ndpi/
|
||||||
|
cp -r ./debian/ndpi-dev-tmp/* ./debian/ndpi-dev/
|
||||||
|
-find ./debian/ndpi -executable -type f | xargs strip
|
||||||
dh_gencontrol
|
dh_gencontrol
|
||||||
dh_md5sums
|
dh_md5sums
|
||||||
dh_builddeb
|
dh_builddeb
|
||||||
|
|||||||
Reference in New Issue
Block a user