mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 19:54:48 +08:00
parent
eb77a6953a
commit
e58b866db8
@ -62,12 +62,18 @@ master分支请尽可能保持稳定,
|
||||
sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder
|
||||
```
|
||||
|
||||
#### see also
|
||||
##### see also
|
||||
|
||||
- http://www.webupd8.org/2010/01/how-to-create-deb-package-ubuntu-debian.html
|
||||
|
||||
- http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/
|
||||
|
||||
#### Openwrt
|
||||
|
||||
##### see also
|
||||
|
||||
- http://lists.openmoko.org/pipermail/devel/2008-July/000496.html
|
||||
|
||||
## Links
|
||||
|
||||
- [Array in unix Bourne Shell](http://unix.stackexchange.com/questions/137566/array-in-unix-bourne-shell)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
VERSION=0.1-2
|
||||
VERSION=0.1-6
|
||||
|
||||
# lib
|
||||
mkdir -p ./debian/usr/lib/zjunet
|
||||
@ -9,7 +9,7 @@ cp ../../lib/* ./debian/usr/lib/zjunet
|
||||
cat > control <<EOF
|
||||
Package: zjunet
|
||||
Version: $VERSION
|
||||
Section: base
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: xl2tpd (>= 1.3.1), curl
|
||||
@ -29,8 +29,8 @@ find ./debian -type d | xargs chmod 755
|
||||
cp control debian/DEBIAN
|
||||
|
||||
# dpkg-deb
|
||||
dpkg-deb --build debian
|
||||
mv debian.deb zjunet_${VERSION}_all.ipk
|
||||
dpkg-deb -Zgzip --build debian
|
||||
mv debian.deb zjunet_${VERSION}_all.deb
|
||||
|
||||
# remove debian/
|
||||
rm -rf ./debian
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user