mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
Merge pull request #82 from snhardin/debian
Create debian package for project
This commit is contained in:
commit
cc4dabb7e2
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
linux-wifi-hotspot (3.1.1) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Scott Hardin <snhardin@users.noreply.github.com> Wed, 21 Oct 2020 19:21:49 -0700
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
||||
11
|
13
debian/control
vendored
Normal file
13
debian/control
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Source: linux-wifi-hotspot
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Lakindu Akash <lakinduakash@users.noreply.github.com>
|
||||
Build-Depends: debhelper (>=11~), pkg-config, libgtk-3-dev
|
||||
Standards-Version: 4.1.4
|
||||
Homepage: https://github.com/lakinduakash/linux-wifi-hotspot
|
||||
|
||||
Package: linux-wifi-hotspot
|
||||
Architecture: any
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||
Description: GUI tool for creating virtual hotspots using the same wi-fi card that is already connected to an access point.
|
24
debian/copyright
vendored
Normal file
24
debian/copyright
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
Files: *
|
||||
Copyright: 2013 oblique
|
||||
2019 lakinduaksh
|
||||
License: BSD-2-Clause
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
.
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
5
debian/rules
vendored
Executable file
5
debian/rules
vendored
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE = 1
|
||||
|
||||
%:
|
||||
dh $@
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
||||
3.0 (native)
|
@ -9,7 +9,7 @@ all:
|
||||
install:
|
||||
install -CDm755 create_ap $(DESTDIR)$(BINDIR)/create_ap
|
||||
install -CDm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -d /lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
[ ! -d $(DESTDIR)/lib/systemd/system ] || install -CDm644 create_ap.service $(DESTDIR)/lib/systemd/system/create_ap.service
|
||||
install -CDm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
install -CDm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
install -CDm755 wihotspot $(DESTDIR)$(BINDIR)/wihotspot
|
||||
@ -17,7 +17,7 @@ install:
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/create_ap
|
||||
rm -f $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -f /lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
[ ! -f $(DESTDIR)/lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)/lib/systemd/system/create_ap.service
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
rm -f /etc/sudoers.d/create_ap # For older versions
|
||||
|
17
util/debian/Dockerfile
Normal file
17
util/debian/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
ARG GIT_TAG=master
|
||||
ARG GIT_URL=https://github.com/lakinduakash/linux-wifi-hotspot/archive/${GIT_TAG}.tar.gz
|
||||
|
||||
# Retrieve dependencies
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y debhelper devscripts build-essential pkg-config libgtk-3-dev
|
||||
|
||||
# Clone source code
|
||||
WORKDIR /root
|
||||
RUN curl -L --output linux-wifi-hotspot.tar.gz --silent ${GIT_URL}
|
||||
RUN tar -xzf linux-wifi-hotspot.tar.gz
|
||||
|
||||
WORKDIR /root/linux-wifi-hotspot-${GIT_TAG}
|
||||
RUN debuild -uc -us
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
11
util/debian/README.md
Normal file
11
util/debian/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Debian Build Docker Image
|
||||
|
||||
The Dockerfile in this directory can be used to build the debian package for this project.
|
||||
|
||||
1. `docker build . -t linux-wifi-hotspot-deb`
|
||||
2. `docker run -it linux-wifi-hotspot-deb`
|
||||
3. `cd /root`
|
||||
|
||||
All build artifacts will be located in the `/root` directory.
|
||||
|
||||
4. Use `docker cp` to copy the desired artifacts out of the container.
|
Loading…
Reference in New Issue
Block a user