Skip to content

Commit

Permalink
Add debian package
Browse files Browse the repository at this point in the history
Can be build with `dpkg-buildpackage -rfakeroot -us -uc -b`.

Closes LaKabane#50
  • Loading branch information
marek22k committed Mar 17, 2024
1 parent 77de101 commit 98354dd
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libtuntap (0.4-1) UNRELEASED; urgency=medium

* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>

-- Marek Küthe <marek@unknown> Sun, 17 Mar 2024 21:34:43 +0100
28 changes: 28 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Source: libtuntap
Section: libs
Priority: optional
Maintainer: LaKabane <[email protected]>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
cmake,
Standards-Version: 4.6.2
Vcs-Browser: https://github.com/LaKabane/libtuntap
Vcs-Git: https://github.com/LaKabane/libtuntap.git

Package: libtuntap-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
libtuntap (= ${binary:Version}),
${misc:Depends},
Description: The portable Tun/Tap devices configuration utility

Package: libtuntap
Architecture: any
Multi-Arch: same
Depends:
${shlibs:Depends},
${misc:Depends},
Description: The portable Tun/Tap devices configuration utility
13 changes: 13 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/LaKabane/libtuntap#license
Upstream-Name: libtuntap
Upstream-Contact: LaKabane <[email protected]>

Files: *
Copyright: LaKabane <[email protected]>
License: ISC

License: ISC
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED “AS IS” AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2 changes: 2 additions & 0 deletions debian/libtuntap-dev.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib
usr/include
1 change: 1 addition & 0 deletions debian/libtuntap-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/include/*
1 change: 1 addition & 0 deletions debian/libtuntap.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib
1 change: 1 addition & 0 deletions debian/libtuntap.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/lib*.so.*
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/make -f

%:
dh $@

override_dh_auto_configure:
dh_auto_configure -- -DENABLE_CXX=ON -DBUILD_SHARED_LIBS=ON

override_dh_auto_test:
# Tests fails: see https://github.com/LaKabane/libtuntap/issues/46
5 changes: 5 additions & 0 deletions debian/upstream/metadata.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bug-Database: https://github.com/LaKabane/libtuntap/issues
Bug-Submit: https://github.com/LaKabane/libtuntap/issues/new
Documentation: https://github.com/LaKabane/libtuntap/blob/master/doc/api.md
Repository-Browse: https://github.com/LaKabane/libtuntap
Repository: https://github.com/LaKabane/libtuntap.git

0 comments on commit 98354dd

Please sign in to comment.