Commit 9dc87dad authored by Joel Rosdahl's avatar Joel Rosdahl

Added Debian files.

parent 1929c3df
1999-11-17 Joel Rosdahl <joel@lysator.liu.se>
* Added README.debian and a debian subdirectory with files for
building a Debian package.
Wed Nov 17 13:54:15 1999 David Byers <davby@sen2.ida.liu.se>
* Release av 0.46-BETA-B
......
How to make a Debian package of the LysKOM elisp client
-------------------------------------------------------
Suppose you have an archive with elisp-client sources called
lyskom-0.46.tar.gz in the directory /foo. Do something like this to
build the package:
% cd /foo
% tar xvzf lyskom-0.46.tar.gz
% mv lyskom-0.46 lyskom-elisp-client-0.46
% mv lyskom-0.46.tar.gz lyskom-elisp-client_0.46.orig.tar.gz
% cd lyskom-elisp-client-0.46
% cp -R <path to elisp-client CVS module>/src/debian .
Edit debian/changelog to make sure the first line contains the correct
version (0.46-1 in this case). Finally:
% fakeroot debian/rules binary # or whatever
If all went well, ../lyskom-elisp-client_VERSION_all.deb has been
created.
(autoload 'lyskom "lyskom-elisp-client" "Start a LysKOM session.
Optional arguments: HOST, USERNAME and PASSWORD.
See lyskom-mode for details." t)
(if (and (not (string-match "XEmacs" emacs-version))
(or (and (= emacs-major-version 19) (>= emacs-minor-version 30))
(>= emacs-major-version 20)))
(let ((tools-map (lookup-key global-map [menu-bar tools])))
(define-key-after tools-map [lyskom] '("LysKOM" . lyskom)
(if (>= emacs-major-version 20) 'gnus 'rmail))))
lyskom-elisp-client for Debian
------------------------------
Joel Rosdahl <joel@lysator.liu.se>
lyskom-elisp-client (0.46.BETA.C-1) unstable; urgency=low
* New version.
-- Joel Rosdahl <joel@debian.org> Wed, 17 Nov 1999 21:37:30 +0100
lyskom-elisp-client (0.45.2-1) unstable; urgency=low
* New version.
-- Joel Rosdahl <joel@debian.org> Fri, 5 Nov 1999 10:39:30 +0100
lyskom-elisp-client (0.45.1-3) unstable; urgency=low
* Now works with both Emacs 19 and Emacs 20, I hope.
* Better startup-file (from Teddy <teddy@fukt.hk-r.se>).
-- Joel Rosdahl <joel@debian.org> Sun, 15 Nov 1998 11:46:02 +0100
lyskom-elisp-client (0.45.1-2) unstable; urgency=low
* Better dependencies.
* Applied patch to make the client work with GNU Emacs 20.3.
-- Joel Rosdahl <joel@debian.org> Fri, 2 Oct 1998 17:22:14 +0200
lyskom-elisp-client (0.45.1-1) unstable; urgency=low
* Initial Release.
-- Joel Rosdahl <joel@debian.org> Sun, 9 Aug 1998 01:04:03 +0200
Local variables:
mode: debian-changelog
add-log-mailing-address: "joel@debian.org"
End:
Source: lyskom-elisp-client
Section: misc
Priority: optional
Maintainer: Joel Rosdahl <joel@debian.org>
Standards-Version: 3.1.0
Package: lyskom-elisp-client
Architecture: all
Depends: emacsen, custom | emacs20 | xemacs19 | xemacs20-bin | xemacs21-bin
Description: Elisp client for LysKOM.
This package is not part of the official Debian distribution.
The sources were downloaded from:
ftp://ftp.lysator.liu.se/pub/lyskom/elisp-client/
Copyright:
GPL version 2.
usr/share/emacs/site-lisp/lyskom-elisp-client
usr/lib/emacsen-common/packages/install
usr/lib/emacsen-common/packages/remove
etc/emacs/site-start.d
NEWS-0.46
README
#!/bin/sh
# /usr/lib/emacsen-common/packages/install/lyskom-elisp-client
set -e
FLAVOR=$1
echo install/lyskom-elisp-client: Handling install of emacsen flavor ${FLAVOR}
el_dir=/usr/share/emacs/site-lisp/lyskom-elisp-client
elc_dir=/usr/share/${FLAVOR}/site-lisp
byte_compile_options="-batch -q -no-site-file -l $el_dir/lpath.el -f batch-byte-compile"
if [ ${FLAVOR} != emacs ]; then
echo install/lyskom-elisp-client: byte-compiling for ${FLAVOR}
echo Please wait...
# We need to make sure custom is available
if [ "$1" = "emacs19" ]; then
if [ -f /usr/share/emacs/site-lisp/custom-init.el ]; then
byte_compile_options="-l /usr/share/emacs/site-lisp/custom-init.el $byte_compile_options"
else
cat <<EOF
===========================================
ERROR:
The "custom" package must be installed when
using lyskom-elisp-client and emacs19!
===========================================
EOF
exit 17
fi
fi
cd ${elc_dir}
gunzip -c ${el_dir}/lyskom.el.gz > lyskom-elisp-client.el
${FLAVOR} ${byte_compile_options} lyskom-elisp-client.el
rm -f ${elc_dir}/*.el
fi
exit 0
#!/bin/sh
# /usr/lib/emacsen-common/packages/remove/lyskom-elisp-client
set -e
FLAVOR=$1
echo remove/lyskom-elisp-client: Handling removal of emacsen flavor ${FLAVOR}
if [ ${FLAVOR} != emacs ]; then
echo emacsen-common: purging byte-compiled files for ${FLAVOR}
rm -f /usr/share/${FLAVOR}/site-lisp/lyskom-elisp-client.elc
fi
exit 0
#!/bin/sh
/usr/lib/emacsen-common/emacs-package-install lyskom-elisp-client
#DEBHELPER#
#!/bin/sh
/usr/lib/emacsen-common/emacs-package-remove lyskom-elisp-client
#DEBHELPER#
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
-$(MAKE) clean
dh_clean
# Build architecture-independent files here.
binary-indep: build
# dh_testversion
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) lyskom.el
cp lpath.el debian/tmp/usr/share/emacs/site-lisp/lyskom-elisp-client/
gzip -c lyskom.el > debian/tmp/usr/share/emacs/site-lisp/lyskom-elisp-client/lyskom.el.gz
install -m 644 debian/50lyskom-elisp-client.el debian/tmp/etc/emacs/site-start.d
install -m 755 debian/emacsen-common-install debian/tmp/usr/lib/emacsen-common/packages/install/lyskom-elisp-client
install -m 755 debian/emacsen-common-remove debian/tmp/usr/lib/emacsen-common/packages/remove/lyskom-elisp-client
dh_installdocs
# dh_installexamples
# dh_installmenu
# dh_installinit
# dh_installcron
# dh_installmanpages
# dh_undocumented
dh_installchangelogs
# dh_strip
dh_compress
dh_fixperms
# dh_suidregister
dh_installdeb
# dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build
# We have nothing to do by default.
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment