diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c776bdf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.deb \ No newline at end of file diff --git a/build/debian/build.sh b/build/debian/build.sh index 3591067..3cf74a1 100755 --- a/build/debian/build.sh +++ b/build/debian/build.sh @@ -1,6 +1,19 @@ -VERSION=0.0.57 -PKG=zjunet-${VERSION} -mkdir -p ${PKG} -tar cvzf ${PKG}.tar.gz ../../lib/ -cd ${PKG} -dh_make -e zenoofzeng@gmail.com -f ../${PKG}.tar.gz +#!/bin/sh + +# bin +mkdir -p ./debian/usr/bin +cp -r ../../lib ./debian/usr +echo '/usr/lib/zjunet/zjunet.sh "$@"' >> ./debian/usr/bin/zjunet +chmod +x ./debian/usr/bin/zjunet + +# contorl file +mkdir -p debian/DEBIAN +find ./debian -type d | xargs chmod 755 +cp control debian/DEBIAN + +# dpkg-deb +dpkg-deb --build debian +mv debian.deb zjunet_0.1-1_all.deb + +# remove debian/ +rm -rf ./debian diff --git a/build/debian/control b/build/debian/control new file mode 100644 index 0000000..b102e59 --- /dev/null +++ b/build/debian/control @@ -0,0 +1,9 @@ +Package: zjunet +Version: 0.1-1 +Section: base +Priority: optional +Architecture: all +Depends: xl2tpd (>= 1.3.6), curl, iconv +Maintainer: Zeno Zeng +Description: Command Line Scripts for ZJU + This script provides a VPN / WLAN / NEXTHOP for ZJUer.