From 094ca96844842928810f14844413109fc6cdd890 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 3 Feb 2013 00:59:38 -0700 Subject: Initial Alpine Version --- packages/debian/changelog | 5 +++ packages/debian/control | 22 +++++++++++++ packages/debian/menu | 2 ++ packages/debian/postinst | 5 +++ packages/debian/postrm | 13 ++++++++ packages/debian/preinst | 9 ++++++ packages/debian/rules | 79 +++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 135 insertions(+) create mode 100644 packages/debian/changelog create mode 100644 packages/debian/control create mode 100644 packages/debian/menu create mode 100644 packages/debian/postinst create mode 100644 packages/debian/postrm create mode 100644 packages/debian/preinst create mode 100755 packages/debian/rules (limited to 'packages/debian') diff --git a/packages/debian/changelog b/packages/debian/changelog new file mode 100644 index 00000000..07849e93 --- /dev/null +++ b/packages/debian/changelog @@ -0,0 +1,5 @@ +alpine (2.01) unstable; urgency=low + + * University of Washington unmodified Alpine release 2.01 package + + -- Alpine Contact Tue, 27 January 2009 20:20:02 -0800 diff --git a/packages/debian/control b/packages/debian/control new file mode 100644 index 00000000..7e94e885 --- /dev/null +++ b/packages/debian/control @@ -0,0 +1,22 @@ +Source: alpine +Section: non-free/mail +Priority: optional +Maintainer: Alpine Contact +Standards-Version: 3.6.1.0 +Build-Depends: libncurses-dev | libncurses5-dev, libldap-dev | libldap2-dev, libssl-dev, libpam-dev | libpam0g-dev + +Package: alpine +Architecture: any +Depends: ${shlibs:Depends}, mime-support +Suggests: exim | mail-transport-agent, spell +Provides: mail-reader +Description: Alpine -- an Alternatively Licensed Program for Internet + News & Email -- is a tool for reading, sending, and managing + electronic messages. Alpine is the successor to Pine and was + developed by Computing & Communications at the University of + Washington. + Though originally designed for inexperienced email users, + Alpine supports many advanced features, and an ever-growing number of + configuration and personal-preference options. + . + Homepage: http://www.washington.edu/pine diff --git a/packages/debian/menu b/packages/debian/menu new file mode 100644 index 00000000..77ed3fe1 --- /dev/null +++ b/packages/debian/menu @@ -0,0 +1,2 @@ +?package(alpine):needs="text" section="Apps/Net" title="Alpine" command="/usr/bin/alpine" +?package(alpine):needs="text" section="Apps/Editors" title="Pico" command="/usr/bin/pico" \ No newline at end of file diff --git a/packages/debian/postinst b/packages/debian/postinst new file mode 100644 index 00000000..6c138e60 --- /dev/null +++ b/packages/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +if [ -x /usr/bin/update-menus ]; then + update-menus +fi diff --git a/packages/debian/postrm b/packages/debian/postrm new file mode 100644 index 00000000..028ea70e --- /dev/null +++ b/packages/debian/postrm @@ -0,0 +1,13 @@ +#!/bin/sh +set -e +if [ -x /usr/bin/update-menus ]; then + update-menus +fi + +if [ remove = "$1" ]; then + dpkg-divert --quiet --package alpine --remove --rename \ + --divert /usr/bin/clone-editor-moved /usr/bin/pico + dpkg-divert --quiet --package alpine --remove --rename \ + --divert /usr/share/man/man1/clone-editor-moved.1.gz \ + /usr/share/man/man1/pico.1.gz +fi diff --git a/packages/debian/preinst b/packages/debian/preinst new file mode 100644 index 00000000..0cb00df1 --- /dev/null +++ b/packages/debian/preinst @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +if [ install = "$1" ]; then + dpkg-divert --quiet --package alpine --add --rename \ + --divert /usr/bin/clone-editor-moved /usr/bin/pico + dpkg-divert --quiet --package alpine --add --rename \ + --divert /usr/share/man/man1/clone-editor-moved.1.gz \ + /usr/share/man/man1/pico.1.gz +fi diff --git a/packages/debian/rules b/packages/debian/rules new file mode 100755 index 00000000..d539e4b8 --- /dev/null +++ b/packages/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f + +DEBUG = +INSTALL_PROGRAM = install + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + DEBUG = -DDEBUG -g +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-all + +build-all: + $(checkdir) + touch imap/ip6 + ./configure + make + touch build-all + +clean: checkroot + $(checkdir) + -rm -f build-all + -rm -rf debian/tmp debian/files* core debian/substvars + +binary-indep: checkroot build-all + +binary-arch: checkroot build-all + $(checkdir) + -rm -rf debian/tmp + install -D -m755 debian/preinst debian/tmp/DEBIAN/preinst + install -D -m755 debian/postinst debian/tmp/DEBIAN/postinst + install -D -m755 debian/postrm debian/tmp/DEBIAN/postrm + install -D -m644 debian/menu debian/tmp/usr/lib/menu/alpine + + $(INSTALL_PROGRAM) -D -m755 alpine/alpine debian/tmp/usr/bin/alpine + $(INSTALL_PROGRAM) -D -m755 imap/mlock/mlock debian/tmp/usr/sbin/mlock + $(INSTALL_PROGRAM) -D -m755 alpine/rpload debian/tmp/usr/bin/rpload + $(INSTALL_PROGRAM) -D -m755 alpine/rpdump debian/tmp/usr/bin/rpdump + $(INSTALL_PROGRAM) -D -m755 pico/pico debian/tmp/usr/bin/pico + $(INSTALL_PROGRAM) -D -m755 pico/pilot debian/tmp/usr/bin/pilot + $(INSTALL_PROGRAM) -D -m755 imap/mailutil/mailutil debian/tmp/usr/bin/mailutil + + install -D -m644 doc/alpine.1 debian/tmp/usr/share/man/man1/alpine.1 + install -D -m644 doc/rpload.1 debian/tmp/usr/share/man/man1/rpload.1 + install -D -m644 doc/rpdump.1 debian/tmp/usr/share/man/man1/rpdump.1 + install -D -m644 doc/pico.1 debian/tmp/usr/share/man/man1/pico.1 + install -D -m644 doc/pilot.1 debian/tmp/usr/share/man/man1/pilot.1 + install -D -m644 imap/src/mailutil/mailutil.1 debian/tmp/usr/share/man/man1/mailutil.1 + install -D -m644 doc/tech-notes.txt debian/tmp/usr/share/doc/alpine/tech-notes.txt + install -D -m644 LICENSE debian/tmp/usr/share/doc/alpine/license + install -D -m644 README debian/tmp/usr/share/doc/alpine/README + install -D -m644 debian/changelog debian/tmp/usr/share/doc/alpine/changelog + + gzip -r9 debian/tmp/usr/share/man + gzip -9 debian/tmp/usr/share/doc/alpine/changelog + dpkg-shlibdeps alpine/alpine pico/pico pico/pilot imap/mlock/mlock alpine/rpload alpine/rpdump + cd debian/tmp && md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + dpkg-gencontrol -isp -palpine + chown -R root.root debian/tmp + chmod -R go=rX debian/tmp + chown root.mail debian/tmp/usr/sbin/mlock + chmod 2755 debian/tmp/usr/sbin/mlock + dpkg --build debian/tmp .. + +define checkdir + test -f alpine/alpine.c -a -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot + -- cgit v1.2.3-70-g09d2