Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 7ec3266

Browse files
committed
support bionic and refine Makefile
1 parent b618066 commit 7ec3266

File tree

4 files changed

+34
-18
lines changed

4 files changed

+34
-18
lines changed

Makefile.debian

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
SERIES = trusty xenial
1+
SERIES = trusty xenial bionic
22

3-
.PYONY: ${SERIES}
3+
.PHONY: all
4+
all: $(SERIES)
45

5-
all: ${SERIES}
6-
7-
trusty:
8-
-rm -rf debuild/$@
9-
mkdir -p debuild/$@
10-
find . -maxdepth 1 ! -name "." ! -name "debuild" -exec cp -r {} debuild/$@ \;
11-
cd debuild/$@ \
12-
&& git reset --hard HEAD \
13-
&& git clean -xdf \
14-
&& rm -rf .git \
15-
&& find QDK_2.x/template/ -name .gitkeep -exec rm -f {} \; \
16-
&& sed -i '1 s/(\(.*\))/(\1~$@)/' debian/changelog \
17-
&& debuild -us -uc -d
18-
19-
xenial:
6+
.PHONY: $(SERIES)
7+
$(SERIES):
208
-rm -rf debuild/$@
219
mkdir -p debuild/$@
2210
find . -maxdepth 1 ! -name "." ! -name "debuild" -exec cp -r {} debuild/$@ \;
@@ -25,12 +13,14 @@ xenial:
2513
&& git clean -xdf \
2614
&& rm -rf .git \
2715
&& find QDK_2.x/template/ -name .gitkeep -exec rm -f {} \; \
28-
&& cp debian/control.xenial debian/control \
16+
&& cp debian/control.$@ debian/control \
2917
&& sed -i '1 s/(\(.*\))/(\1~$@)/' debian/changelog \
3018
&& debuild -us -uc -d
3119

20+
.PHONY: clean
3221
clean:
3322
-rm -rf debuild
3423

24+
.PHONY: dput
3525
dput:
3626
dput ppa:fcwu-tw/ppa qdk2_*_source.changes

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
qdk2 (0.25) trusty; urgency=medium
2+
3+
* Support Ubuntu bionic
4+
5+
-- Walker Lee <walkerlee.tw@gmail.com> Wed, 10 Apr 2019 18:50:00 +0800
6+
17
qdk2 (0.24) trusty; urgency=medium
28

39
* Support code signing and anti-tampering

debian/control.bionic

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Source: qdk2
2+
Section: python
3+
Vcs-Git: https://github.com/qnap-dev/qdk2.git
4+
Priority: extra
5+
Build-Depends: debhelper (>= 6)
6+
Maintainer: Doro Wu <fcwu.tw@gmail.com>
7+
Standards-Version: 3.9.5
8+
9+
Package: qdk2
10+
Architecture: amd64
11+
Depends: python (<< 3.0),
12+
python (>= 2.6),
13+
pv,
14+
bsdmainutils (>= 9.0),
15+
curl (>= 7.35),
16+
openssl (>= 1.0),
17+
${shlibs:Depends},
18+
${misc:Depends}
19+
Description: QNAP Development Toolkit Next Generation
20+
Provides tools to build QNAP package
File renamed without changes.

0 commit comments

Comments
 (0)