Skip to content

Commit

Permalink
Merge pull request #137 from SimonSickle/master
Browse files Browse the repository at this point in the history
Add .deb building to make debian installs easier
  • Loading branch information
M0Rf30 authored Jan 12, 2018
2 parents 784697d + 566051f commit aa8d4ef
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
android-udev-rules (0.0.1-1) stable; urgency=low

* First build of a deb

-- builder <builder@wheezy-builder> Mon, 24 Mar 2014 16:05:35 +0100
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
android-udev-rules (0.0.1-1) stable; urgency=low

* First build of a deb

-- builder <builder@wheezy-builder> Mon, 24 Mar 2014 16:05:35 +0100
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
12 changes: 12 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: android-udev-rules
Section: developer-tools
Priority: extra
Maintainer: Simon Sickle <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.4
Vcs-Git: https://github.com/M0Rf30/android-udev-rules.git

Package: android-udev-rules
Architecture: any
Depends: android-tools-adb, android-tools-fastboot
Description: udev rules to get ADB working
23 changes: 23 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: android-udev-rules
Source: https://github.com/M0Rf30/android-udev-rules

Files: *
Copyright: 2018 Free Software Foundation, Inc. <http://fsf.org/>
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

1 change: 1 addition & 0 deletions debian/files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
android-udev-rules_0.0.1-1_amd64.deb developer-tools extra
2 changes: 2 additions & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android-udev.conf /usr/lib/sysusers.d
51-android.rules /etc/udev/rules.d
13 changes: 13 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Setup permissions
chmod a+r /etc/udev/rules.d/51-android.rules

# Make sure adbusers is setup properly
groupadd adbusers
usermod -a -G adbusers $(whoami)

# Reload udev and reset adb
udevadm control --reload-rules
service udev restart
adb kill-server
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/make -f
%:
dh $@

override_dh_auto_make:
make

0 comments on commit aa8d4ef

Please sign in to comment.