summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile69
-rw-r--r--debian/changelog11
-rw-r--r--debian/control12
-rw-r--r--debian/copyright39
-rw-r--r--debian/postinst64
-rwxr-xr-xdebian/rules4
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides0
-rw-r--r--debian/source/local-options0
-rw-r--r--ferengi-rules136
10 files changed, 336 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..59824f9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,69 @@
+#
+# Build variables
+#
+SRCNAME = fortune-ferengi-rules
+PKGNAME = $(SRCNAME)
+RELVER = 1
+DEBVER = 1
+RELPLAT ?= deb$(shell lsb_release -rs 2> /dev/null)
+
+#
+# Other variables
+#
+prefix ?= /usr
+fortunedir ?= $(prefix)/share/games/fortunes
+
+FORTUNE_FILES = \
+ ferengi-rules \
+ ferengi-rules.dat
+
+FORTUNE_INSTALLABLES = $(patsubst %, $(DESTDIR)$(fortunedir)/%, $(FORTUNE_FILES))
+INSTALLABLES = $(FORTUNE_INSTALLABLES)
+
+
+default:
+ @echo This does nothing
+
+install: $(INSTALLABLES)
+
+$(DESTDIR)$(fortunedir)/%.dat: %
+ strfile $< $*.dat
+ install -D -m 0644 $*.dat $@
+
+$(DESTDIR)$(fortunedir)/%: %
+ install -D -m 0644 $< $@
+
+deb: debclean debprep
+ debchange --distribution stable --package $(PKGNAME) \
+ --newversion $(EPOCHVER)$(RELVER)-$(DEBVER).$(RELPLAT) \
+ "Autobuild of $(EPOCHVER)$(RELVER)-$(DEBVER) for $(RELPLAT)"
+ dpkg-buildpackage -b --no-sign
+ git checkout debian/changelog
+
+debchange:
+ debchange -v $(RELVER)-$(DEBVER)
+ debchange -r
+
+
+debprep: debclean
+ (cd .. && \
+ rm -f $(PKGNAME)-$(RELVER) && \
+ rm -f $(PKGNAME)-$(RELVER).tar.gz && \
+ rm -f $(PKGNAME)_$(RELVER).orig.tar.gz && \
+ ln -s $(SRCNAME) $(PKGNAME)-$(RELVER) && \
+ tar --exclude=".git" -h -zvcf $(PKGNAME)-$(RELVER).tar.gz $(PKGNAME)-$(RELVER) && \
+ ln -s $(PKGNAME)-$(RELVER).tar.gz $(PKGNAME)_$(RELVER).orig.tar.gz )
+
+debclean:
+ rm -f ../$(PKGNAME)_$(RELVER)*
+ rm -f ../$(PKGNAME)-$(RELVER)*
+ rm -rf debian/$(PKGNAME)
+ rm -f debian/files
+ rm -rf debian/.debhelper/
+ rm -f debian/debhelper-build-stamp
+ rm -f debian/*.substvars
+ rm -rf debian/$(SRCNAME)/ debian/.debhelper/
+ rm -f debian/debhelper-build-stamp debian/files debian/$(SRCNAME).substvars
+ rm -f debian/*.debhelper
+
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c7948fd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+fortune-ferengi-rules (1-1.deb13) stable; urgency=medium
+
+ * Autobuild of 1-1 for deb13
+
+ -- Helium <jason@mfamily.org> Wed, 05 Aug 2026 21:29:20 -0400
+
+fortune-ferengi-rules (1-1) unstable; urgency=medium
+
+ * Release
+
+ -- Jason McCormick <jason@mfamily.org> Wed, 05 Aug 2026 21:29:10 -0400
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..569709c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,12 @@
+Source: fortune-ferengi-rules
+Section: games
+Priority: optional
+Maintainer: Jason McCormick <jason@mfamily.org>
+Build-Depends: debhelper-compat (= 13), pandoc
+Standards-Version: 4.5.1
+Rules-Requires-Root: binary-targets
+
+Package: fortune-ferengi-rules
+Architecture: all
+Depends: ${misc:Depends}, fortune-mod
+Description: Ferengi Rules of Acquitision for Fortune
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..039507d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,39 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: fortune-ferengi-rules
+Source: https://packetwarriors.com
+
+Files: ferengi-rules
+Copyright: 1987-1994 Paramount Pictures Corporation
+ 1993-2005 Paramount Pictures Corporation (Star Trek: Deep Space Nine)
+Comment: The "Ferengi Rules of Acquisition" are fictional content originating
+ from the Star Trek franchise (Star Trek: The Next Generation and Star Trek:
+ Deep Space Nine), created by Paramount/CBS Studios. This text is used here
+ under fair use / fan-work convention as a fortune-file compilation and is
+ not an original work of the packager. No claim of ownership over the
+ underlying creative content is made.
+License: not-free
+ This content is the intellectual property of Paramount Pictures / CBS
+ Studios and is not licensed for commercial redistribution. It is
+ distributed here informally, in the spirit of other fan-maintained
+ fortune-mod cookie files, on a non-commercial basis.
+ .
+ No permission is granted to sublicense, sell, or use this content for
+ commercial purposes. If you are a rights holder and object to this
+ distribution, please contact the packager for removal.
+
+Files: debian/*
+Copyright: 2026 Jason McCormick <jason@mfamily.org>
+License: GPL-3+
+ This package (packaging files, Makefile, debian/* metadata) 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.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in "/usr/share/common-licenses/GPL-3". \ No newline at end of file
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..f8be2b1
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,64 @@
+#!/bin/sh -e
+# postinst script for allmon3
+#
+# see: dh_installdeb(1)
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see https://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+do_configure() {
+
+ # create asterisk user
+ if ! getent passwd asterisk > /dev/null ; then
+ echo 'Adding system user for Asterisk' 1>&2
+ adduser --system --group --quiet \
+ --home /var/lib/asterisk \
+ --no-create-home --disabled-login \
+ --gecos "Asterisk PBX daemon" \
+ asterisk
+ fi
+
+ # add asterisk to required groups
+ for group in dialout audio plugdev; do
+ if groups asterisk | grep -w -q -v $group; then
+ adduser asterisk $group
+ fi
+ done
+
+ if [ ! -d /var/lib/asterisk ]; then
+ mkdir /var/lib/asterisk
+ chown asterisk:asterisk /var/lib/asterisk
+ fi
+
+}
+
+case "$1" in
+ configure)
+ do_configure
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ 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/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/source/lintian-overrides
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/source/local-options
diff --git a/ferengi-rules b/ferengi-rules
new file mode 100644
index 0000000..544c343
--- /dev/null
+++ b/ferengi-rules
@@ -0,0 +1,136 @@
+#1 - Once you have their money, you never give it back.
+%
+#3 - Never spend more for an acquisition than you have to.
+%
+#6 - Never allow family to stand in the way of opportunity.
+%
+#7 - Keep your ears open.
+%
+#8 - Small print leads to large risk.
+%
+#9 - Opportunity plus instinct equals profit.
+%
+#10 - Greed is eternal.
+%
+#16 - A deal is a deal.
+%
+#17 - A contract is a contract is a contract… but only between Ferengi.
+%
+#18 - A Ferengi without profit is no Ferengi at all.
+%
+#21 - Never place friendship above profit.
+%
+#22 - A wise man can hear profit in the wind.
+%
+#23 - Nothing is more important than your health… except for your money.
+%
+#31 - Never make fun of a Ferengi's mother.
+%
+#33 - It never hurts to suck up to the boss.
+%
+#34 - War is good for business.
+%
+#35 - Peace is good for business.
+%
+#45 - Expand or die.
+%
+#47 - Don't trust a man wearing a better suit than your own.
+%
+#48 - The bigger the smile, the sharper the knife.
+%
+#57 - Good customers are as rare as latinum. Treasure them.
+%
+#59 - Free advice is seldom cheap.
+%
+#62 - The riskier the road, the greater the profit.
+%
+#74 - Knowledge equals profit.
+%
+#75 - Home is where the heart is, but the stars are made of latinum.
+%
+#76 - Every once in a while, declare peace. It confuses the hell
+out of your enemies.
+%
+#91 - Your boss is only worth what he pays you.
+%
+#94 - Females and finances don't mix.
+%
+#95 - Expand or die.
+%
+#98 - Every man has his price.
+%
+#102 - Nature decays, but latinum lasts forever.
+%
+#103 - Sleep can interfere with…
+%
+#109 - Dignity and an empty sack is worth the sack.
+%
+#111 - Treat people in your debt like family… exploit them.
+%
+#112 - Never have sex with the boss' sister.
+%
+#125 - You can't make a deal if you're dead.
+%
+#139 - Wives serve, brothers inherit.
+%
+#168 - Whisper your way to success.
+%
+#190 - Hear all, trust nothing.
+%
+#194 - It's always good business to know about new customers
+before they walk in your door.
+%
+#203 - New customers are like razor-toothed gree-worms. They can
+be succulent, but sometimes they bite back.
+%
+#208 - Sometimes the only thing more dangerous than a question is an answer.
+%
+#211 - Employees are the rungs on the ladder of success. Don't hesitate to step
+on them.
+%
+#214 - Never begin a business negotiation on an empty stomach.
+%
+#217 - You can't free a fish from water.
+%
+#223 - Unknown, but presumably concerned the relationship between
+"keeping busy" and "being successful".
+%
+#229 - Latinum lasts longer than lust.
+%
+#239 - Never be afraid to mislabel a product.
+%
+#263 - Never allow doubt to tarnish your lust for latinum.
+%
+#285 - No good deed ever goes unpunished.
+%
+#289 - Shoot first, count profits later.
+%
+#Unknown A man is only worth the sum of his possessions.
+%
+#286 - When Morn leaves, it's all over.
+%
+#299 - Whenever you exploit someone, it never hurts to thank them. That way,
+it's easier to exploit them next time.
+%
+# Unknown - Exploitation begins at home.
+%
+# Unknown - (The unwritten rule) When no appropriate rule applies, make one up.
+%
+# Unknown - When the messenger comes to appropriate your profits…
+kill the messenger.
+%
+# Unknown - Time, like latinum, is a highly limited commodity.
+%
+# Unknown - Always inspect the merchandise before making a deal.
+%
+# Unknown - Money is money, but females are better.
+%
+# Unknown - Why ask, when you can take?
+%
+# Unknown - Good things come in small packages
+%
+# Unknown - A good lie is easier to believe than the truth.
+%
+# Unknown - If that's what's written, then that's what's written.
+%
+# Unknown - A distracted policeman is an opportunity. \ No newline at end of file