aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian5
-rw-r--r--debian/changelog5
-rw-r--r--debian/control19
-rw-r--r--debian/copyright26
-rw-r--r--debian/locale-en-bs.dsc14
-rw-r--r--debian/locale-en-bs.install1
-rw-r--r--debian/locale-en-bs.postinst28
-rw-r--r--debian/locale-en-bs.prerm30
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules9
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/local-options2
-rw-r--r--debian/watch2
13 files changed, 143 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..32620f0
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,5 @@
+locale-en-bs for Devuan
+
+After installing, you can set the LC_TIME to en_BS.utf8
+
+ -- B. Stack <bgstack15@gmail.com> Sat, 05 Mar 2022 10:57:10 -0500
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..765e4be
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+locale-en-bs (0.0.1-1) obs; urgency=low
+
+ * Initial release. Closes: packages-want#15
+
+ -- B. Stack <bgstack15@gmail.com> Sat, 05 Mar 2022 10:57:10 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ccf4818
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: locale-en-bs
+Section: localization
+Priority: optional
+Maintainer: B. Stack <bgstack15@gmail.com>
+Build-Depends: debhelper-compat (= 12)
+Standards-Version: 4.5.0
+Homepage: https://bgstack15.ddns.net/
+
+Package: locale-en-bs
+Architecture: all
+Multi-Arch: foreign
+# Binary programs in postinst, prerm come from these packages
+Depends: ${misc:Depends}, ${shlibs:Depends},
+ libc-bin,
+ locales
+Description: glibc locale for Stackrpms
+ This en_BS locale fixes the en_US timestamps to make
+ more sense. This is intended for internal use at
+ Stackrpms locations.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5f2ad27
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: locale-en-bs
+Upstream-Contact: B. Stack <bgstack15@gmail.com>
+Source: https://bgstack15.ddns.net/
+
+Files: en_BS
+ locale-en_BS.spec
+ debian/*
+Copyright: 2022, B. Stack <bgstack15@gmail.com>
+License: GPL-3
+ 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 3 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 <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/locale-en-bs.dsc b/debian/locale-en-bs.dsc
new file mode 100644
index 0000000..a8d4404
--- /dev/null
+++ b/debian/locale-en-bs.dsc
@@ -0,0 +1,14 @@
+Format: 3.0 (quilt)
+Source: locale-en-bs
+Binary: locale-en-bs
+Architecture: all
+Version: 0.0.1-1
+Maintainer: B. Stack <bgstack15@gmail.com>
+Homepage: https://bgstack15.ddns.net/
+Standards-Version: 4.5.0
+Build-Depends: debhelper-compat (= 12)
+Package-List:
+ locale-en-bs deb localization optional arch=all
+Files:
+ 00000000000000000000000000000000 1 locale-en-bs.orig.tar.gz
+ 00000000000000000000000000000000 1 locale-en-bs.debian.tar.xz
diff --git a/debian/locale-en-bs.install b/debian/locale-en-bs.install
new file mode 100644
index 0000000..9faa35c
--- /dev/null
+++ b/debian/locale-en-bs.install
@@ -0,0 +1 @@
+en_BS usr/share/i18n/locales
diff --git a/debian/locale-en-bs.postinst b/debian/locale-en-bs.postinst
new file mode 100644
index 0000000..5ff1e25
--- /dev/null
+++ b/debian/locale-en-bs.postinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Reference:
+# https://askubuntu.com/questions/21316/how-can-i-customize-a-system-locale
+set -e
+
+fix1() {
+ grep -qe 'en_BS UTF-8' $1 || echo 'en_BS UTF-8' >> $1
+ grep -qe 'en_BS.UTF-8 UTF-8' $1 || echo 'en_BS.UTF-8 UTF-8' >> $1
+}
+
+case "$1" in
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
+ localedef --quiet --force --inputfile /usr/share/i18n/locales/en_BS --charmap UTF-8 en_BS.utf8
+ fix1 /usr/share/i18n/SUPPORTED
+ fix1 /etc/locale.gen
+ locale-gen
+ update-locale LC_TIME=en_BS
+ ;;
+
+ *)
+ echo "postinst called with unknown argument '\$1'" 1>&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/locale-en-bs.prerm b/debian/locale-en-bs.prerm
new file mode 100644
index 0000000..72c2729
--- /dev/null
+++ b/debian/locale-en-bs.prerm
@@ -0,0 +1,30 @@
+#!/bin/sh
+set -e
+
+fix1() {
+ grep -qE 'en_BS' $1 && sed -i -r -e '/en_BS/d' $1
+}
+
+case "${1}" in
+ remove|deconfigure)
+ localedef --quiet --delete-from-archive en_US.utf8
+ fix1 /usr/share/i18n/SUPPORTED
+ fix1 /etc/locale.gen
+ locale-gen
+ ;;
+
+ upgrade)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument '\$1'" 1>&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4a97dfa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+# You must remove unused comment lines for the released package.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9cf3a86
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# You must remove unused comment lines for the released package.
+#export DH_VERBOSE = 1
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..00131ee
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1,2 @@
+#abort-on-upstream-changes
+#unapply-patches
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..76575dc
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+# You must remove unused comment lines for the released package.
+version=3
bgstack15