--- /dev/null
- # $MirOS: jupp/debian/joe-jupp.install,v 1.4 2011/07/27 20:08:44 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/joe-jupp.install,v 1.4 2011/07/27 20:08:44 tg Exp $
+#-
+builddir/jmacsrc etc/jupp/
+builddir/joerc etc/jupp/
+builddir/jpicorc etc/jupp/
+builddir/jstarrc etc/jupp/
+builddir/rjoerc etc/jupp/
--- /dev/null
- # $MirOS: jupp/debian/joe-jupp.links,v 1.1 2011/07/27 19:44:24 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/joe-jupp.links,v 1.1 2011/07/27 19:44:24 tg Exp $
+#-
+usr/bin/jupp usr/bin/jmacs
+usr/bin/jupp usr/bin/joe
+usr/bin/jupp usr/bin/jpico
+usr/bin/jupp usr/bin/jstar
+usr/bin/jupp usr/bin/rjoe
+usr/share/doc/jupp usr/share/doc/joe-jupp
+usr/share/man/man1/jupp.1.gz usr/share/man/man1/jmacs.1.gz
+usr/share/man/man1/jupp.1.gz usr/share/man/man1/joe.1.gz
+usr/share/man/man1/jupp.1.gz usr/share/man/man1/jpico.1.gz
+usr/share/man/man1/jupp.1.gz usr/share/man/man1/jstar.1.gz
+usr/share/man/man1/jupp.1.gz usr/share/man/man1/rjoe.1.gz
--- /dev/null
- # $MirOS: jupp/debian/joe-jupp.menu,v 1.1 2009/09/16 12:44:47 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/joe-jupp.menu,v 1.1 2009/09/16 12:44:47 tg Exp $
+#-
+?package(joe-jupp):needs="text" \
+ section="Applications/Editors" \
+ title="jmacs" longtitle="JOE's Own Emacs" \
+ command="/usr/bin/jmacs"
+?package(joe-jupp):needs="text" \
+ section="Applications/Editors" \
+ title="joe" longtitle="JOE's Own Editor" \
+ command="/usr/bin/joe"
+?package(joe-jupp):needs="text" \
+ section="Applications/Editors" \
+ title="jpico" longtitle="JOE's Own PICO" \
+ command="/usr/bin/jpico"
+?package(joe-jupp):needs="text" \
+ section="Applications/Editors" \
+ title="jstar" longtitle="JOE's Own *star" \
+ command="/usr/bin/jstar"
--- /dev/null
- # $MirOS: jupp/debian/joe-jupp.postinst,v 1.7 2011/09/06 20:07:39 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/joe-jupp.postinst,v 1.7 2011/09/06 20:07:39 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * new-postinst "configure" [$most_recently_configured_version]
+# The package is unpacked; all dependencies are unpacked and, when there
+# are no circular dependencies, configured.
+#
+# * old-postinst "abort-upgrade" $new_version
+# * conflictors-postinst "abort-remove" "in-favour" $package
+# $new_version
+# * postinst "abort-remove"
+# * deconfigureds-postinst "abort-deconfigure" "in-favour"
+# $failed_install_package $fip_version ["removing"
+# $conflicting_package $cp_version]
+# The package is unpacked; all dependencies are at least Half-Installed,
+# previously been configured, and not removed. In some error situations,
+# dependencies may not be even fully unpacked.
+#
+# * postinst "triggered" "${triggers[*]}"
+# For trigger-only calls, i.e. if "configure" is not called.
+
+case $1 in
+configure)
+ for whatall in jstar:98 joe:97 jpico:96 jmacs:95; do
+ whateditor=${whatall%:*}
+ whatlevel=${whatall##*:}
+ update-alternatives --install /usr/bin/editor editor \
+ /usr/bin/${whateditor} $whatlevel \
+ --slave /var/lib/misc/editorrc editorrc /etc/jupp/${whateditor}rc \
+ --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
+ /usr/share/man/man1/${whateditor}.1.gz
+ done
+ ;;
+
+abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+triggered)
+ ;;
+
+*)
+ echo >&2 "postinst called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/joe-jupp.prerm,v 1.4 2011/09/06 20:07:39 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/joe-jupp.prerm,v 1.4 2011/09/06 20:07:39 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * prerm "remove"
+# * old-prerm "upgrade" $new_version
+# * conflictors-prerm "remove" "in-favour" $package $new_version
+# * deconfigureds-prerm "deconfigure" "in-favour"
+# $package_being_installed $pbi_version ["removing"
+# $conflicting_package $cp_version]
+# The package and dependencies are at least Half-Installed; dependencies
+# have previously been configured and not removed.
+#
+# * new-prerm "failed-upgrade" $old_version
+# Called when 'old-prerm "upgrade"' fails; new package not unpacked, all
+# other constraints the same as above.
+
+case $1 in
+remove|deconfigure)
+ for x in jmacs jpico joe jstar; do
+ update-alternatives --remove editor /usr/bin/$x
+ done
+ ;;
+
+upgrade|failed-upgrade)
+ ;;
+
+*)
+ echo >&2 "prerm called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/jupp.docs,v 1.4 2012/12/29 01:37:59 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.docs,v 1.4 2012/12/29 01:37:59 tg Exp $
+#-
+HINTS
+INFO
+LIST
+README
--- /dev/null
- # $MirOS: jupp/debian/jupp.install,v 1.6 2012/12/29 01:37:59 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.install,v 1.6 2012/12/29 01:37:59 tg Exp $
+#-
+builddir/charmaps/* etc/jupp/charmaps/
+builddir/jupp usr/bin/
+builddir/syntax/* etc/jupp/syntax/
+jupprc etc/jupp/
--- /dev/null
- # $MirOS: jupp/debian/jupp.manpages,v 1.2 2011/07/03 01:31:43 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.manpages,v 1.2 2011/07/03 01:31:43 tg Exp $
+#-
+builddir/jupp.1
--- /dev/null
- # $MirOS: jupp/debian/jupp.menu,v 1.1 2009/09/16 12:44:47 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.menu,v 1.1 2009/09/16 12:44:47 tg Exp $
+#-
+?package(jupp):needs="text" \
+ section="Applications/Editors" \
+ title="jupp" longtitle="Jupp Editor" \
+ command="/usr/bin/jupp"
--- /dev/null
- # $MirOS: jupp/debian/jupp.postinst,v 1.11 2011/10/06 08:59:57 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.postinst,v 1.11 2011/10/06 08:59:57 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * new-postinst "configure" [$most_recently_configured_version]
+# The package is unpacked; all dependencies are unpacked and, when there
+# are no circular dependencies, configured.
+#
+# * old-postinst "abort-upgrade" $new_version
+# * conflictors-postinst "abort-remove" "in-favour" $package
+# $new_version
+# * postinst "abort-remove"
+# * deconfigureds-postinst "abort-deconfigure" "in-favour"
+# $failed_install_package $fip_version ["removing"
+# $conflicting_package $cp_version]
+# The package is unpacked; all dependencies are at least Half-Installed,
+# previously been configured, and not removed. In some error situations,
+# dependencies may not be even fully unpacked.
+#
+# * postinst "triggered" "${triggers[*]}"
+# For trigger-only calls, i.e. if "configure" is not called.
+
+case $1 in
+configure)
+ update-alternatives --install /usr/bin/editor editor /usr/bin/jupp 99 \
+ --slave /var/lib/misc/editorrc editorrc /etc/jupp/jupprc \
+ --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
+ /usr/share/man/man1/jupp.1.gz
+
+ if test -z "$2" || \
+ dpkg --compare-versions "$2" lt '3.1.18-2~'; then
+ rm -f /etc/jupp/editorrc
+ ln -sf ../../var/lib/misc/editorrc /etc/jupp/editorrc
+ fi
+ ;;
+
+abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+triggered)
+ ;;
+
+*)
+ echo >&2 "postinst called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/jupp.postrm,v 1.2 2011/09/06 20:07:39 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.postrm,v 1.2 2011/09/06 20:07:39 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * postrm "remove"
+# * postrm "purge"
+# * old-postrm "upgrade" $new_version
+# * disappearers-postrm "disappear" $overwriter $o_version
+# The package's files have been removed or replaced; only Essential pak-
+# kages may be available; skip gracefully actions requiring Depends.
+#
+# * new-postrm "failed-upgrade" $old_version
+# Called when 'old-postrm "upgrade"' fails; the new package is unpacked,
+# Essential packages and Pre-Depends are available; the latter have been
+# configured and never removed but may be Unpacked or Half-Configured.
+#
+# * new-postrm "abort-install" [$old_version]
+# * new-postrm "abort-upgrade" $old_version
+# Called when preinst fails; package is not unpacked. Essential packages
+# and (unpacked or Half-Configured) Pre-Depends are available.
+
+case $1 in
+remove)
+ ;;
+
+purge)
+ rm -rf /etc/jupp
+ ;;
+
+upgrade|disappear|failed-upgrade|abort-install|abort-upgrade)
+ ;;
+
+*)
+ echo >&2 "postrm called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/jupp.preinst,v 1.5 2011/10/06 08:59:57 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.preinst,v 1.5 2011/10/06 08:59:57 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * new-preinst "install" [$old_version]
+# * new-preinst "upgrade" [$old_version]
+# * old-preinst "abort-upgrade" $new_version
+# Essential packages and Pre-Depends are available. Pre-Depends have
+# been configured once, but may be unpacked or Half-Configured only,
+# or, for "abort-upgrade", Half-Installed if their upgrade failed.
+
+case $1 in
+install|upgrade)
+ # drop old editorrc (master alternative and symlink file both)
+ if test -z "$2" || \
+ dpkg --compare-versions "$2" lt '3.1.18-2~'; then
+ # this will noisily pass if editorrc was already removed,
+ # but not remove a slave alternative
+ (update-alternatives --remove-all editorrc 2>/dev/null || :)
+ fi
+ ;;
+
+abort-upgrade)
+ ;;
+
+*)
+ echo >&2 "preinst called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/jupp.prerm,v 1.4 2011/09/06 20:07:39 tg Exp $
+#!/bin/sh
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/jupp.prerm,v 1.4 2011/09/06 20:07:39 tg Exp $
+
+set -e
+
+# This maintainer script can be called the following ways:
+#
+# * prerm "remove"
+# * old-prerm "upgrade" $new_version
+# * conflictors-prerm "remove" "in-favour" $package $new_version
+# * deconfigureds-prerm "deconfigure" "in-favour"
+# $package_being_installed $pbi_version ["removing"
+# $conflicting_package $cp_version]
+# The package and dependencies are at least Half-Installed; dependencies
+# have previously been configured and not removed.
+#
+# * new-prerm "failed-upgrade" $old_version
+# Called when 'old-prerm "upgrade"' fails; new package not unpacked, all
+# other constraints the same as above.
+
+case $1 in
+remove|deconfigure)
+ update-alternatives --remove editor /usr/bin/jupp
+ ;;
+
+upgrade|failed-upgrade)
+ ;;
+
+*)
+ echo >&2 "prerm called with unknown subcommand '$1'"
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- /dev/null
- # $MirOS: jupp/debian/rules,v 1.25 2012/12/30 22:39:41 tg Exp $
+#!/usr/bin/make -f
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/rules,v 1.25 2012/12/30 22:39:41 tg Exp $
+#-
+# Possible flavourisation (in addition to stock Debian rules):
+# export DEB_BUILD_OPTIONS=diet
+# export DEB_BUILD_OPTIONS=klibc
+# export DEB_BUILD_OPTIONS=klibc CC='klcc -shared'
+# export DEB_BUILD_OPTIONS='diet debug' (or 'klibc debug')
+# export DEB_BUILD_OPTIONS=static (for eglibc)
+# All can be combined with 'nopwnam' (aids static linkage).
+# The 'nostrip' and 'parallel=n' options are supported as well.
+#
+# Setting diet or klibc disables -O0/-O2 and -g and, if unset,
+# sets CC. Adding debug enables -g3. Cross-compiling also sets
+# CC if unset.
+#
+# Statically linking violates the Policy requirement of having a
+# Built-Using header, but since that is only used in local rebuilds
+# and not in the Debian archive, it constitutes no Policy violation.
+
+shellescape='$(subst ','\'',$(1))'
+shellexport=$(1)=$(call shellescape,${$(1)})
+
+ifeq (,$(findstring diet,${DEB_BUILD_OPTIONS}))
+ifeq (,$(findstring klibc,${DEB_BUILD_OPTIONS}))
+USE_LIBC:=system
+else
+USE_LIBC:=klibc
+endif
+else
+USE_LIBC:=dietlibc
+endif
+
+DEB_BUILD_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+# is ${CC} defined anywhere (other than implicit rules?)
+ifneq (,$(findstring $(origin CC),default undefined))
+# no - then default to gcc (or cross-gcc)
+ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH})
+CC= ${DEB_HOST_GNU_TYPE}-gcc
+else
+ifeq (,$(findstring diet,${DEB_BUILD_OPTIONS}))
+ifeq (,$(findstring klibc,${DEB_BUILD_OPTIONS}))
+CC= gcc
+else
+# export CC='klcc -shared' manually if you want that
+CC= klcc
+endif
+else
+CC= diet -Os gcc
+endif
+endif
+endif
+
+EXTRA_CFLAGS+= -Wall -Wformat
+EXTRA_CFLAGS+= -fno-omit-frame-pointer -fwrapv -fno-strict-aliasing
+# adjust when backporting
+EXTRA_CFLAGS+= -Wextra -Wno-pointer-sign -Wno-unused-parameter \
+ -Wno-missing-field-initializers \
+ -Wno-old-style-definition -Wno-strict-prototypes \
+ -Wno-cast-qual \
+ -Wno-missing-prototypes -Wno-missing-declarations
+EXTRA_LDFLAGS= -Wl,--as-needed
+
+ifneq (${USE_LIBC},system)
+ifneq (,$(findstring debug,${DEB_BUILD_OPTIONS}))
+EXTRA_CFLAGS+= -g3
+endif
+# SSP currently works with neither dietlibc nor klibc
+EXTRA_CFLAGS+= -fno-stack-protector
+else
+ifneq (,$(findstring static,${DEB_BUILD_OPTIONS}))
+EXTRA_LDFLAGS+= -static
+endif
+endif
+
+ifneq (,$(wildcard /usr/share/dpkg/buildflags.mk))
+# dpkg-dev (>= 1.16.1~)
+DEB_CFLAGS_MAINT_APPEND=${EXTRA_CFLAGS}
+DEB_LDFLAGS_MAINT_APPEND=${EXTRA_LDFLAGS}
+ifneq (${USE_LIBC},system)
+# the diet and klcc wrappers take care of optimisation for us
+DEB_CFLAGS_MAINT_STRIP=-O0 -O1 -O2 -O3 -Os -g -g1 -g2 -g3 -ggdb -gdwarf -gstabs
+# do not use PIE with strange libcs, either
+DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+else
+ifneq (,$(findstring static,${DEB_BUILD_OPTIONS}))
+# cannot mix PIE with static linkage
+DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+else
+DEB_BUILD_MAINT_OPTIONS=hardening=+all
+endif
+endif
+include /usr/share/dpkg/buildflags.mk
+else
+# old-fashioned way to determine build flags
+ifneq (${USE_LIBC},system)
+CFLAGS=
+else
+CFLAGS= -O$(if $(findstring noopt,${DEB_BUILD_OPTIONS}),0,2) -g
+endif
+CFLAGS+= ${EXTRA_CFLAGS}
+LDFLAGS+= ${EXTRA_LDFLAGS}
+endif
+
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NUMJOBS= $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+MAKEFLAGS+= -j${NUMJOBS}
+endif
+
+CONFIGURE_ARGS= --sysconfdir=/etc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-dependency-tracking \
+ --disable-termidx
+
+ifneq (${USE_LIBC},system)
+# prevent picking up system libraries linked against the system C library
+CONFIGURE_ARGS+= --disable-search-libs
+endif
+
+ifneq (,$(findstring nopwnam,${DEB_BUILD_OPTIONS}))
+CONFIGURE_ARGS+= --disable-getpwnam
+endif
+
+debian/.configure_stamp:
+ dh_testdir
+ -rm -f debian/.*_stamp
+ -rm -rf builddir
+ # apply autotools-dev if it exists
+ for x in config.guess config.sub; do \
+ test -e /usr/share/misc/$$x || continue; \
+ rm -f $$x; \
+ cp /usr/share/misc/$$x .; \
+ done
+ mkdir builddir
+ cd builddir && env \
+ $(foreach i,CC CFLAGS CPPFLAGS LDFLAGS,$(call shellexport,$i)) \
+ sh ../configure ${CONFIGURE_ARGS}
+ @:>$@
+
+debian/.build_stamp: debian/.configure_stamp
+ dh_testdir
+ cd builddir && ${MAKE} sysconfjoesubdir=/jupp
+ ln -f builddir/joe builddir/jupp
+ ln -f builddir/joe.1 builddir/jupp.1
+ @:>$@
+
+build: build-arch build-indep
+build-arch: debian/.build_stamp
+build-indep: debian/.configure_stamp
+
+clean:
+ dh_testdir
+ -rm -f debian/.*_stamp
+ -rm -rf builddir
+ # unapply autotools-dev if it exists
+ for x in config.guess config.sub; do \
+ test -e /usr/share/misc/$$x || continue; \
+ rm -f $$x; \
+ done
+ dh_clean
+
+binary-indep: build-indep
+ dh_testdir
+ dh_testroot
+ if test -x "$$(which dh_prep)"; then dh_prep -i; else dh_clean -i -k; fi
+ dh_installchangelogs -i -Njupp
+ dh_install -i
+ dh_installmenu -i
+ # will be replaced by links to jupp
+ rm -rf debian/joe-jupp/usr/share/doc/joe-jupp
+ dh_link -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i
+ dh_md5sums -i
+ dh_builddeb -i
+
+# no -Njupp because that's the only arch:any package
+binary-arch: build-arch
+ dh_testdir
+ dh_testroot
+ if test -x "$$(which dh_prep)"; then dh_prep -a; else dh_clean -a -k; fi
+ dh_installchangelogs -pjupp -k NEWS
+ dh_installdocs -a
+ dh_install -a
+ dh_installmenu -a
+ dh_installman -a
+ dh_link -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-arch binary-indep
+
+.PHONY: binary binary-arch binary-indep build build-arch build-indep clean
--- /dev/null
- # $MirOS: jupp/debian/source.lintian-overrides,v 1.3 2014/06/29 12:20:29 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/source.lintian-overrides,v 1.3 2014/06/29 12:20:29 tg Exp $
+
+# there is only gzsig, not pgp
+jupp source: debian-watch-may-check-gpg-signature
--- /dev/null
- # $MirOS: jupp/debian/watch,v 1.3 2012/06/07 23:00:34 tg Exp $
++# $MirOS: contrib/hosted/tg/deb/jupp/debian/watch,v 1.3 2012/06/07 23:00:34 tg Exp $
+
+version=3
+opts="uversionmangle=s/^([0-9]+)\.([0-9]+)jupp([0-9]+)$/$1.$2.$3/" \
+http://www.mirbsd.org/MirOS/dist/jupp/ joe-(.*)\.tgz