From 7fb80990a346a21cdf9c59b075d9a7de42a28671 Mon Sep 17 00:00:00 2001 From: Ward Nakchbandi Date: Sat, 18 Mar 2023 08:20:15 -0400 Subject: [PATCH] first commit --- .github/workflows/release.yml | 40 +++++++++++++++++++ game-devices-udev/debian/changelog | 0 game-devices-udev/debian/compat | 1 + game-devices-udev/debian/control | 11 +++++ game-devices-udev/debian/copyright | 23 +++++++++++ game-devices-udev/debian/install | 2 + game-devices-udev/debian/rules | 4 ++ game-devices-udev/debian/source/format | 1 + .../etc/modules-load.d/uinput.conf | 1 + .../usr/lib/modules-load.d/uinput.conf | 1 + main.sh | 22 ++++++++++ orig.source.txt | 1 + release.sh | 11 +++++ 13 files changed, 118 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 game-devices-udev/debian/changelog create mode 100644 game-devices-udev/debian/compat create mode 100644 game-devices-udev/debian/control create mode 100644 game-devices-udev/debian/copyright create mode 100644 game-devices-udev/debian/install create mode 100755 game-devices-udev/debian/rules create mode 100644 game-devices-udev/debian/source/format create mode 100644 game-devices-udev/etc/modules-load.d/uinput.conf create mode 100644 game-devices-udev/usr/lib/modules-load.d/uinput.conf create mode 100755 main.sh create mode 100644 orig.source.txt create mode 100755 release.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2cf8ce8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: PikaOS Package Release + +on: + workflow_dispatch + +jobs: + build: + runs-on: self-hosted + container: + image: ubuntu:22.10 + volumes: + - /proc:/proc + options: --privileged -it + + steps: + - uses: actions/checkout@v3 + + - name: Install needed packages + run: apt update && apt install software-properties-common sudo git bc gpg gpg-agent bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig devscripts dh-make -y + + - name: Import GPG key + id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa + known_hosts: ${{ secrets.KNOWN_HOSTS }} + if_key_exists: replace + + - name: Build Package + run: ./main.sh + + - name: Release Package + run: ./release.sh diff --git a/game-devices-udev/debian/changelog b/game-devices-udev/debian/changelog new file mode 100644 index 0000000..e69de29 diff --git a/game-devices-udev/debian/compat b/game-devices-udev/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/game-devices-udev/debian/compat @@ -0,0 +1 @@ +9 diff --git a/game-devices-udev/debian/control b/game-devices-udev/debian/control new file mode 100644 index 0000000..2759523 --- /dev/null +++ b/game-devices-udev/debian/control @@ -0,0 +1,11 @@ +Source: game-devices-udev +Section: admin +Priority: optional +Maintainer: Clement Lefebvre +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.5 + +Package: fabiscafe-devices +Architecture: all +Depends: ${misc:Depends} +Description: udev rules to make supported controllers available with user-grade permissions diff --git a/game-devices-udev/debian/copyright b/game-devices-udev/debian/copyright new file mode 100644 index 0000000..f24d7a2 --- /dev/null +++ b/game-devices-udev/debian/copyright @@ -0,0 +1,23 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: mintsystem +Upstream-Contact: Clement Lefebvre +Source: https://github.com/linuxmint/mintsystem + +Files: * +Copyright: 2008-2014 Clement Lefebvre +License: GPL-2.0+ + This program 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 2 of the License, or + (at your option) any later version. + . + This program 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 . + . + On Debian GNU/Linux systems, the complete text of the GNU General Public + License version 2 can be found in '/usr/share/common-licenses/GPL-2'. diff --git a/game-devices-udev/debian/install b/game-devices-udev/debian/install new file mode 100644 index 0000000..a75e237 --- /dev/null +++ b/game-devices-udev/debian/install @@ -0,0 +1,2 @@ +etc +usr diff --git a/game-devices-udev/debian/rules b/game-devices-udev/debian/rules new file mode 100755 index 0000000..000210b --- /dev/null +++ b/game-devices-udev/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh ${@} diff --git a/game-devices-udev/debian/source/format b/game-devices-udev/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/game-devices-udev/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/game-devices-udev/etc/modules-load.d/uinput.conf b/game-devices-udev/etc/modules-load.d/uinput.conf new file mode 100644 index 0000000..42bc005 --- /dev/null +++ b/game-devices-udev/etc/modules-load.d/uinput.conf @@ -0,0 +1 @@ +uinput diff --git a/game-devices-udev/usr/lib/modules-load.d/uinput.conf b/game-devices-udev/usr/lib/modules-load.d/uinput.conf new file mode 100644 index 0000000..42bc005 --- /dev/null +++ b/game-devices-udev/usr/lib/modules-load.d/uinput.conf @@ -0,0 +1 @@ +uinput diff --git a/main.sh b/main.sh new file mode 100755 index 0000000..e05b29f --- /dev/null +++ b/main.sh @@ -0,0 +1,22 @@ +#! /bin/bash +# Add dependent repositories +wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add - +add-apt-repository https://ppa.pika-os.com +add-apt-repository ppa:pikaos/pika +add-apt-repository ppa:kubuntu-ppa/backports +# Clone Upstream +git clone https://codeberg.org/fabiscafe/game-devices-udev rules +cp -rvf rules/*.rules game-devices-udev/usr/lib/udev/rules.d/ +echo -e "fabiscafe-devices ("$(date '+%Y%m%d')".git-99pika"$(date '+%M')") kinetic; urgency=medium\n\n * New Upstream Release\n\n -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200" > game-devices-udev/debian/changelog +cd game-devices-udev + +# Get build deps +apt-get build-dep ./ -y + +# Build package +dpkg-buildpackage + +# Move the debs to output +cd ../ +mkdir -p ./output +mv ./*.deb ./output/ diff --git a/orig.source.txt b/orig.source.txt new file mode 100644 index 0000000..cb72724 --- /dev/null +++ b/orig.source.txt @@ -0,0 +1 @@ +https://codeberg.org/fabiscafe/game-devices-udev diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..ce9e316 --- /dev/null +++ b/release.sh @@ -0,0 +1,11 @@ +# Sign the packages +dpkg-sig --sign builder ./output/*.deb + +# Pull down existing ppa repo db files etc +rsync -azP --exclude '*.deb' ferreo@direct.pika-os.com:/srv/www/pikappa/ ./output/repo + +# Add the new package to the repo +reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/*.deb + +# Push the updated ppa repo to the server +rsync -azP ./output/repo/ ferreo@direct.pika-os.com:/srv/www/pikappa/