diff options
-rw-r--r-- | debian/README.Debian | 2 | ||||
-rw-r--r-- | debian/_service | 4 | ||||
-rw-r--r-- | debian/changelog | 8 | ||||
-rw-r--r-- | debian/control | 8 | ||||
-rw-r--r-- | debian/copyright | 22 | ||||
-rwxr-xr-x | debian/rules | 2 | ||||
-rw-r--r-- | debian/stackrpms-acer-chromebook.dsc | 14 | ||||
-rw-r--r-- | debian/stackrpms-acer-chromebook.lintian-overrides | 1 | ||||
-rw-r--r-- | debian/stackrpms-thinkpad-p50s.dsc | 14 | ||||
-rw-r--r-- | debian/stackrpms-thinkpad-p50s.lintian-overrides | 1 | ||||
-rw-r--r-- | files-for-versioning.txt | 2 | ||||
-rw-r--r-- | src/Makefile | 2 | ||||
-rwxr-xr-x | src/usr/bin/use-package-fluxbox-files | 56 | ||||
-rw-r--r-- | src/usr/share/man/man1/use-package-fluxbox-files.1.txt | 26 |
14 files changed, 126 insertions, 36 deletions
diff --git a/debian/README.Debian b/debian/README.Debian index 37a8046..5d76577 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,4 +1,4 @@ -stackrpms-thinkpad-p50s for Devuan +stackrpms-acer-chromebook for Devuan Initial release. diff --git a/debian/_service b/debian/_service index cd9ad4d..7ce8ce8 100644 --- a/debian/_service +++ b/debian/_service @@ -1,7 +1,7 @@ <services> <service name="tar_scm"> <param name="scm">git</param> - <param name="url">https://bgstack15.ddns.net/cgit/stackrpms-thinkpad-p50s</param> + <param name="url">https://bgstack15.ddns.net/cgit/stackrpms-acer-chromebook</param> <param name="subdir">debian</param> <param name="filename">debian</param> <param name="revision">master</param> @@ -13,7 +13,7 @@ </service> <service name="tar_scm"> <param name="scm">git</param> - <param name="url">https://bgstack15.ddns.net/cgit/stackrpms-thinkpad-p50s</param> + <param name="url">https://bgstack15.ddns.net/cgit/stackrpms-acer-chromebook</param> <param name="revision">master</param> <param name="version">_none_</param> </service> diff --git a/debian/changelog b/debian/changelog index ce44dac..30c48f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +stackrpms-acer-chromebook (0.0.5-1) obs; urgency=low + + * Fork for Acer Chromebook C720 + * Add additional fluxbox template files (#3) + * Add script that symlinks to those fluxbox templates (#4) + + -- B. Stack <bgstack15@gmail.com> Tue, 30 Apr 2024 13:28:37 -0400 + stackrpms-thinkpad-p50s (0.0.4-1) obs; urgency=low * Fix powerkit invocation (want#1) diff --git a/debian/control b/debian/control index 605eb20..deba141 100644 --- a/debian/control +++ b/debian/control @@ -1,16 +1,16 @@ -Source: stackrpms-thinkpad-p50s +Source: stackrpms-acer-chromebook Section: admin Priority: optional Maintainer: B. Stack <bgstack15@gmail.com> Build-Depends: debhelper-compat (= 13) Standards-Version: 4.5.1 -Homepage: https://bgstack15.ddns.net/cgit/stackrpms-thinkpad-p50s/ +Homepage: https://bgstack15.ddns.net/cgit/stackrpms-acer-chromebook/ Rules-Requires-Root: no Package: stackrpms-thinkpad-p50s Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends} -Description: Common files for Thinkpad P50s platform - Useful configs and scripts for Stackrpms Thinkpad P50s +Description: Common files for Acer Chromebook platform + Useful configs and scripts for Stackrpms Acer Chromebook systems diff --git a/debian/copyright b/debian/copyright index 7701eac..2ab73e9 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,7 +1,7 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: stackrpms-thinkpad-p50s +Upstream-Name: stackrpms-acer-chromebook Upstream-Contact: B. Stack <bgstack15@gmail.com> -Source: <https://bgstack15.dds.net/cgit/stackrpms-thinkpad-p50s> +Source: <https://bgstack15.dds.net/cgit/stackrpms-acer-chromebook> Files: .gitignore debian/changelog @@ -13,34 +13,34 @@ Files: .gitignore debian/source/format debian/source/options debian/source/patch-header - debian/stackrpms-thinkpad-p50s.lintian-overrides + debian/stackrpms-acer-chromebook.lintian-overrides debian/upstream/metadata debian/watch .gitremotes - src/etc/stackrpms-thinkpad-p50s/fluxbox.keys - src/etc/stackrpms-thinkpad-p50s/fluxbox.startup - src/etc/stackrpms-thinkpad-p50s/Xmodmap + src/etc/stackrpms-acer-chromebook/fluxbox.keys + src/etc/stackrpms-acer-chromebook/fluxbox.startup + src/etc/stackrpms-acer-chromebook/Xmodmap src/Makefile - src/usr/bin/hwset-thinkpad-p50s + src/usr/bin/hwset-acer-chromebook src/usr/bin/netmounts-off src/usr/bin/netmounts-on src/usr/bin/netmounts-trayicon src/usr/bin/vpn-off src/usr/bin/vpn-on src/usr/bin/vpn-trayicon - src/usr/share/doc/stackrpms-thinkpad-p50s/README.md + src/usr/share/doc/stackrpms-acer-chromebook/README.md src/usr/share/icons/hicolor/scalable/status/netmounts-off.svg src/usr/share/icons/hicolor/scalable/status/netmounts-on.svg src/usr/share/icons/hicolor/scalable/status/vpn-off.svg src/usr/share/icons/hicolor/scalable/status/vpn-on.svg - src/usr/share/man/man1/hwset-thinkpad-p50s.1.gz + src/usr/share/man/man1/hwset-acer-chromebook.1.gz src/usr/share/man/man1/netmounts-off.1.gz src/usr/share/man/man1/netmounts-on.1.gz src/usr/share/man/man1/netmounts-trayicon.1.gz src/usr/share/man/man1/vpn-off.1.gz src/usr/share/man/man1/vpn-on.1.gz src/usr/share/man/man1/vpn-trayicon.1.gz - src/usr/share/man/man1/hwset-thinkpad-p50s.1.txt + src/usr/share/man/man1/hwset-acer-chromebook.1.txt src/usr/share/man/man1/netmounts-off.1.txt src/usr/share/man/man1/netmounts-on.1.txt src/usr/share/man/man1/netmounts-trayicon.1.txt @@ -70,7 +70,7 @@ License: GPL-3 # src/usr/share/icons/hicolor/scalable/status/vpn-on.svg # src/usr/share/icons/hicolor/scalable/status/netmounts-on.svg # src/usr/share/icons/hicolor/scalable/status/vpn-off.svg -# src/usr/share/doc/stackrpms-thinkpad-p50s/README.md +# src/usr/share/doc/stackrpms-acer-chromebook/README.md #---------------------------------------------------------------------------- # Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following diff --git a/debian/rules b/debian/rules index 0dcb931..92debe2 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ #export DEB_BUILD_MAINT_OPTIONS = hardening=+all #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -export APPNAME=stackrpms-thinkpad-p50s +export APPNAME=stackrpms-acer-chromebook %: dh $@ --sourcedirectory=src diff --git a/debian/stackrpms-acer-chromebook.dsc b/debian/stackrpms-acer-chromebook.dsc new file mode 100644 index 0000000..cb4f0cd --- /dev/null +++ b/debian/stackrpms-acer-chromebook.dsc @@ -0,0 +1,14 @@ +Format: 3.0 (quilt) +Source: stackrpms-acer-chromebook +Binary: stackrpms-acer-chromebook +Architecture: all +Version: 0.0.5-1 +Maintainer: B. Stack <bgstack15@gmail.com> +Homepage: https://bgstack15.ddns.net/cgit/stackrpms-acer-chromebook/ +Standards-Version: 4.5.1 +Build-Depends: debhelper-compat (= 13), bgscripts-core, txt2man +Package-List: + stackrpms-acer-chromebook deb admin optional arch=all +Files: + 00000000000000000000000000000000 1 stackrpms-acer-chromebook.orig.tar.gz + 00000000000000000000000000000000 1 stackrpms-acer-chromebook.debian.tar.xz diff --git a/debian/stackrpms-acer-chromebook.lintian-overrides b/debian/stackrpms-acer-chromebook.lintian-overrides new file mode 100644 index 0000000..5747b61 --- /dev/null +++ b/debian/stackrpms-acer-chromebook.lintian-overrides @@ -0,0 +1 @@ +script-not-executable [etc/stackrpms-acer-chromebook/fluxbox.startup] diff --git a/debian/stackrpms-thinkpad-p50s.dsc b/debian/stackrpms-thinkpad-p50s.dsc deleted file mode 100644 index 29b4616..0000000 --- a/debian/stackrpms-thinkpad-p50s.dsc +++ /dev/null @@ -1,14 +0,0 @@ -Format: 3.0 (quilt) -Source: stackrpms-thinkpad-p50s -Binary: stackrpms-thinkpad-p50s -Architecture: all -Version: 0.0.4-1 -Maintainer: B. Stack <bgstack15@gmail.com> -Homepage: https://bgstack15.ddns.net/cgit/stackrpms-thinkpad-p50s/ -Standards-Version: 4.5.1 -Build-Depends: debhelper-compat (= 13), bgscripts-core, txt2man -Package-List: - stackrpms-thinkpad-p50s deb admin optional arch=all -Files: - 00000000000000000000000000000000 1 stackrpms-thinkpad-p50s.orig.tar.gz - 00000000000000000000000000000000 1 stackrpms-thinkpad-p50s.debian.tar.xz diff --git a/debian/stackrpms-thinkpad-p50s.lintian-overrides b/debian/stackrpms-thinkpad-p50s.lintian-overrides deleted file mode 100644 index 63addd9..0000000 --- a/debian/stackrpms-thinkpad-p50s.lintian-overrides +++ /dev/null @@ -1 +0,0 @@ -script-not-executable [etc/stackrpms-thinkpad-p50s/fluxbox.startup] diff --git a/files-for-versioning.txt b/files-for-versioning.txt index a46916d..7983bc8 100644 --- a/files-for-versioning.txt +++ b/files-for-versioning.txt @@ -1,4 +1,4 @@ debian/changelog debian/_service README.md -debian/stackrpms-thinkpad-p50s.dsc +debian/stackrpms-acer-chromebook.dsc diff --git a/src/Makefile b/src/Makefile index 598b137..ef6a8fc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ # build-devuan: txt2man APPNAME = stackrpms-acer-chromebook -APPVERSION = 0.0.1 +APPVERSION = 0.0.5 SRCDIR = $(CURDIR) prefix = /usr SYSCONFDIR = $(DESTDIR)/etc diff --git a/src/usr/bin/use-package-fluxbox-files b/src/usr/bin/use-package-fluxbox-files new file mode 100755 index 0000000..3d8e5f2 --- /dev/null +++ b/src/usr/bin/use-package-fluxbox-files @@ -0,0 +1,56 @@ +#!/bin/sh +# File: /usr/bin/use-package-fluxbox-files +# Location: stackrpms-acer-chromebook package +# Author: bgstack15 +# SPDX-License-Identifier: GPL-3.0 +# Startdate: 2024-04-30-3 12:46 +# Title: Use Platform Package-Provided Fluxbox Files +# Package: stackrpms-acer-chromebook +# Purpose: Symlink available package-provided fluxbox files to user fluxbox path +# History: +# Usage: +# use-package-fluxbox-files --all +# Improve: +# Dependencies: +# +# Documentation: +# Notably, this will decline to mkdir ~/.fluxbox if not present. +THIS_PACKAGE="stackrpms-acer-chromebook" + +# useful only for testing: +DESTDIR= + +# FAIL OUT IF SUDO +test -n "${SUDO_USER}" && { echo "Please run ${0} as a user, not with sudo. It makes sense only for a user. Aborted." ; exit 1 ; } + +# PARSE PARAMETERS or environment variables +# _SOFT is an additional parameter passed to ln, which uses -f to force the operation. +if test -n "${ALL}" || echo " ${*} " | grep -qE -e " --all " ; +then + _SOFT="f" +fi +# SOFT takes precedence, so calculate it last. +if test -n "${SOFT}" || echo " ${*} " | grep -qE -e " --soft " ; +then + _SOFT="" +fi +for tf in $( find "${DESTDIR}/etc/${THIS_PACKAGE}" -name 'fluxbox.*' -printf '%f\n' ) ; +do + df="$( echo "${tf}" | sed -r -e 's/^fluxbox\.//;' )" # destfile + ldf="${HOME}/.fluxbox/${df}" # long destfile + ltf="${DESTDIR}/etc/${THIS_PACKAGE}/${tf}" # long thisfile + _currentdest="$( readlink -f "${ldf}" 2>/dev/null )" + if test "${_currentdest}" = "${ltf}" ; + then + echo "${ldf} ALREADY -> ${ltf}" + else + # do not quote _SOFT: + output="$( ln -v -s${_SOFT} "${ltf}" "${ldf}" 2>&1 )" + if test $? -ne 0 ; + then + printf '%s %s\n' "${output}" "-> ${_currentdest}" + else + printf '%s%s\n' "${output}" ", WAS -> ${_currentdest}" + fi + fi +done diff --git a/src/usr/share/man/man1/use-package-fluxbox-files.1.txt b/src/usr/share/man/man1/use-package-fluxbox-files.1.txt new file mode 100644 index 0000000..a98da16 --- /dev/null +++ b/src/usr/share/man/man1/use-package-fluxbox-files.1.txt @@ -0,0 +1,26 @@ +title use-package-fluxbox-files +section 1 +project stackrpms-acer-chromebook +volume General Commands Manual +date April 2024 +===== +NAME + use-package-fluxbox-files - Use the customized fluxbox files for current user +SYNOPSIS + use-package-fluxbox-files [--all|--soft] +ENVIRONMENT VARIABLES + ALL Any non-blank value will force the symlinks. + SOFT Any non-blank value will cause the symlinks to not overwrite existing files/symlinks. Takes precedence over ALL. Default behavior. +PARAMETERS + --all Same as env var ALL. + --soft Same as env var SOFT. +DESCRIPTION + A convenience script that sets up symlinks to /etc/stackrpms-acer-chromebook/fluxbox.* files in the current user's .fluxbox/ directory. +AUTHOR + B. Stack <bgstack15@gmail.com> +COPYRIGHT + GPL 3.0 +BUGS + If you catch any bugs please email the author. +SEE ALSO + /etc/stackrpms-acer-chromebook/fluxbox.* |