aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-01-07 20:52:38 -0500
committerB Stack <bgstack15@gmail.com>2021-01-07 20:56:10 -0500
commitbadcb48cd279f0e2a0ed7eae2661171f2411e647 (patch)
tree920d3319404ece4811fd7f8bea5ef96ba52021e1 /debian
downloadfuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.tar.gz
fuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.tar.bz2
fuss-badcb48cd279f0e2a0ed7eae2661171f2411e647.zip
initial commit
Diffstat (limited to 'debian')
-rw-r--r--debian/README.Debian7
-rw-r--r--debian/changelog5
-rw-r--r--debian/control23
-rw-r--r--debian/copyright39
-rw-r--r--debian/fuss.lintian-overrides6
-rw-r--r--debian/fuss_0.0.1-1.dsc12
-rw-r--r--debian/patches/series1
-rw-r--r--debian/postinst36
-rw-r--r--debian/postrm23
-rw-r--r--debian/prerm34
-rwxr-xr-xdebian/rules14
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides3
-rw-r--r--debian/source/local-options2
-rw-r--r--debian/watch2
15 files changed, 208 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..92940d2
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,7 @@
+fuss for Devuan
+
+To make fuss work with apache2 in a Debian-like apache2 environment, you will need to run these commands.
+
+ for word in proxy rewrite ssl headers ; do sudo a2enmod ${word} ; done
+
+ -- B. Stack <bgstack15@gmail.com> Tue, 05 Jan 2021 11:04:29 -0500
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3e9adb2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+fuss (0.0.1-1) obs; urgency=low
+
+ * Initial release. Closes: packages-want#000
+
+ -- B. Stack <bgstack15@gmail.com> Tue, 05 Jan 2021 11:04:29 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9b08d51
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: fuss
+Section: web
+Priority: optional
+Maintainer: B. Stack <bgstack15@gmail.com>
+Build-Depends: debhelper-compat (= 12)
+Standards-Version: 4.5.0
+Homepage: https://gitlab.com/bgstack15/fuss/
+
+Package: fuss
+Architecture: all
+Multi-Arch: foreign
+Pre-Depends: adduser
+Depends: ${misc:Depends}, ${shlibs:Depends},
+ lsb-base,
+ python3-flask,
+ python3-uwsgidecorators,
+ python3:any,
+ uwsgi-core,
+ uwsgi-plugin-python3
+Recommends: apache2
+Description: File Upload and Storage Service
+ A demo web app using flask to present a simple
+ web page for uploading and downloading files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec90d60
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,39 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fuss
+Upstream-Contact: <preferred name and address to reach the upstream project>
+Source: <url://example.com>
+#
+# Please double check copyright with the licensecheck(1) command.
+
+Files: README.md
+ extra/Makefile
+ extra/fuss.conf.apache
+ fuss.bin
+ fuss.conf.example
+ fuss.py
+ fuss.wsgi.ini.example
+ static/files.css
+ static/fuss-upload
+ static/index.css
+ static/index.js
+ static/robots.txt
+ static/upload.css
+ templates/index.html.j2
+ templates/upload.html.j2
+Copyright: __NO_COPYRIGHT_NOR_LICENSE__
+License: __NO_COPYRIGHT_NOR_LICENSE__
+
+Files: extra/fuss.init
+Copyright: __NO_COPYRIGHT__ in: extra/fuss.init
+License: __UNKNOWN__
+ Do NOT "set -e"
+ .
+ PATH should only include /usr/* if it runs after the mountnfs.sh script
+
+Files: templates/upload.js.j2
+Copyright: AJAX UPLOAD
+License: __NO_LICENSE__
+
+#----------------------------------------------------------------------------
+# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
+# license/copyright files.
diff --git a/debian/fuss.lintian-overrides b/debian/fuss.lintian-overrides
new file mode 100644
index 0000000..78801ac
--- /dev/null
+++ b/debian/fuss.lintian-overrides
@@ -0,0 +1,6 @@
+copyright-has-url-from-dh_make-boilerplate
+copyright-without-copyright-notice
+dir-or-file-in-var-www
+script-in-etc-init.d-not-registered-via-update-rc.d
+script-not-executable
+uses-dpkg-database-directly prerm
diff --git a/debian/fuss_0.0.1-1.dsc b/debian/fuss_0.0.1-1.dsc
new file mode 100644
index 0000000..03f8625
--- /dev/null
+++ b/debian/fuss_0.0.1-1.dsc
@@ -0,0 +1,12 @@
+Format: 3.0 (quilt)
+Source: fuss
+Binary: fuss
+Architecture: all
+Version: 0.0.1-1
+Maintainer: B. Stack <bgstack15@gmail.com>
+Homepage: https://gitlab.com/bgstack15/fuss/
+Standards-Version: 4.5.0
+Build-Depends: debhelper-compat (= 12)
+Files:
+ 00000000000000000000000000000000 1 fuss.orig.tar.gz
+ 00000000000000000000000000000000 1 fuss.debian.tar.xz
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/postinst b/debian/postinst
new file mode 100644
index 0000000..9c80e67
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,36 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+OUT=/dev/null
+USERNAME=fuss
+HOME=/var/www/fuss
+SERVICE=fuss
+
+case "$1" in
+ configure)
+ update-rc.d ${SERVICE} defaults
+ if ! getent passwd ${USERNAME} 1>${OUT} 2>&1 ;
+ then
+ echo "Creating ${USERNAME} system user & group..."
+ adduser --quiet --system --home $HOME \
+ --disabled-password --group \
+ --gecos "FUSS system user" \
+ ${USERNAME} > ${OUT} 2>&1
+ fi
+ chown ${USERNAME}:${USERNAME} \
+ ${HOME} ${HOME}/* \
+ /var/log/${SERVICE} /var/log/${SERVICE}/*log 1>/${OUT} 2>&1 || :
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..29efbb0
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+OUT=/dev/null
+HOME=/var/www/fuss
+SERVICE=fuss
+
+case "$1" in
+ purge)
+ update-rc.d -f ${SERVICE} remove
+ rm -f ${HOME}/upload/.*.meta 1>${OUT} 2>&1 || :
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..a0e1dcb
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,34 @@
+#!/bin/sh
+set -e
+
+OUT=/dev/null
+HOME=/var/www/fuss
+SERVICE=fuss
+
+case "$1" in
+ remove)
+ test -x /usr/sbin/invoke-rc.d && \
+ INIT="invoke-rc.d ${SERVICE}" || \
+ INIT="/etc/init.d/${SERVICE}"
+ ${INIT} stop
+ ;;
+
+ purge)
+ rm -f ${HOME}/fuss.pid 1>${OUT} 2>&1 || :
+ ;;
+
+ upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4da7afe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/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 $@ --sourcedirectory=extra
+
+override_dh_auto_install:
+ dh_auto_install -- prefix=/usr \
+ DEFAULTDIR='$$(DESTDIR)/etc/default' \
+ APACHEDIR='$$(SYSCONFDIR)/apache2/sites-available'
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/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..41c1457
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+syntax-error-in-dep5-copyright
+file-without-copyright-information
+missing-license-paragraph-in-dep5-copyright
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