+zephyr (2.1.20000421.SNAPSHOT-8) unstable; urgency=low
+
+ *
+ * zephyr-client -> zephyr-clients
+ * Produce libzephyr3 package and used shared libs
+ * Clean up debian/rules to only call movefiles once
+ * Depend on libxaw-dev for sid/woody
+
+ --
+
zephyr (2.1.20000421.SNAPSHOT-7) unstable; urgency=low
* Fix incorrect potato build-depends (xlib6g-dev instead of xlib6g)
Section: unknown
Priority: optional
Maintainer: Karl Ramm <kcr@1ts.org>
-Build-Depends: debhelper, libares-dev, libkrb5-dev, comerr-dev, ss-dev, libreadline4-dev, xlibs-dev | xlib6g-dev, libncurses5-dev, bison
+Build-Depends: debhelper, libares-dev, libkrb5-dev, comerr-dev, ss-dev, libreadline4-dev, xlibs-dev | xlib6g-dev, libxaw-dev|xlib6g-dev, libncurses5-dev, bison
Standards-Version: 3.1.1
-Package: zephyr-client
+Package: libzephyr3
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: The original "Instant Message" system libraries
+ This is the Project Athena Zephyr notification system 2000/04/21 snapshot.
+ Zephyr allows users to send messages to other users or to groups of
+ users. Users can view incoming Zephyr messages as windowgrams
+ (transient X windows) or as text on a terminal.
+
+Package: zephyr-clients
+Provides: zephyr-client
+Replaces: zephyr-client
+Conflicts: zephyr-client
Architecture: any
Depends: ${shlibs:Depends}, debianutils (>= 1.6)
Description: The original "Instant Message" system client
usr/lib/libzephyr.a
+usr/lib/libzephyr.so
usr/include/zephyr/mit-copyright.h
usr/include/zephyr/zephyr.h
usr/include/zephyr/zephyr_err.h
--- /dev/null
+usr/lib/libzephyr.so.*
# This has to be exported to make some magic below work.
export DH_OPTIONS
-
+SONAME=3
configure: configure-stamp
configure-stamp:
dh_testdir
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ -rm -f lib/zephyr/*.o
+ $(MAKE) -C lib \
+ FPIC= \
+ LIBEXT=a
+ rm -f lib/zephyr/*.o
+ $(MAKE) LIBEXT=so \
+ FPIC=-fpic SONAME=$(SONAME)
touch build-stamp
# Add here commands to install the package into debian/tmp.
$(MAKE) install DESTDIR=`pwd`/debian/tmp
+ mv debian/tmp/usr/lib/libzephyr.so debian/tmp/usr/lib/libzephyr.so.$(SONAME)
+ ln -s libzephyr.so.$(SONAME) debian/tmp/usr/lib/libzephyr.so
mkdir -p debian/tmp/etc/zephyr/acl
set -x; for i in debian/acl/*; do install -c -m 544 -o root $$i debian/tmp/etc/zephyr/acl; done; set +x
install -c -m 544 debian/zephyr.vars debian/tmp/etc/zephyr
binary-arch: build install
dh_testdir
dh_testroot
- dh_movefiles -pzephyr-client
- dh_movefiles -pzephyr-server
- dh_movefiles -plibzephyr-dev
- dh_installdebconf -pzephyr-client
- dh_installdebconf -pzephyr-server
+ dh_movefiles
+ dh_installdebconf
dh_installdocs
# dh_installexamples
# dh_installmenu
dh_builddeb
binary: binary-indep binary-arch
+
.PHONY: build clean binary-indep binary-arch binary install configure
+
+
. /usr/share/debconf/confmodule
-db_input high zephyr-client/servers || true
+db_input high zephyr-clients/servers || true
db_go
+
set -e
-if test -f /etc/default/zephyr-client
+if test -f /etc/default/zephyr-clients
then
- . /etc/default/zephyr-client
+ . /etc/default/zephyr-clients
fi
case "$1" in
if test -f /etc/zephyr/zephyr.conf
then
- if test ! -f /dev/default/zephyr-client
+ if test ! -f /dev/default/zephyr-clients
then
- mv /etc/zephyr/zephyr.conf /etc/default/zephyr-client
+ mv /etc/zephyr/zephyr.conf /etc/default/zephyr-clients
fi
fi
- db_get zephyr-client/servers
- if test -f /etc/default/zephyr-client
+ db_get zephyr-clients/servers
+ if test -f /etc/default/zephyr-clients
then
- grep -v ^zhm_args /etc/default/zephyr-client > $tmpfile || true
+ grep -v ^zhm_args /etc/default/zephyr-clients > $tmpfile || true
fi
echo zhm_args=\"${RET}\" >> $tmpfile
- cat $tmpfile > /etc/default/zephyr-client
+ cat $tmpfile > /etc/default/zephyr-clients
;;
abort-upgrade|abort-remove|abort-deconfigure)
case "$1" in
deconfigure|remove)
- rm /etc/default/zephyr-client || true
+ rm /etc/default/zephyr-clients || true
;;
upgrade)
# remove|upgrade|deconfigure)
-Template: zephyr-client/servers
+Template: zephyr-clients/servers
Type: string
Description: What are your zephyr servers?
Please type the full names of your zephyr servers, seperated by spaces.
CC=@CC@
INSTALL=@INSTALL@
RANLIB=@RANLIB@
-
+FPIC=
+DEBUG=-O
CPPFLAGS=@CPPFLAGS@
-CFLAGS=@CFLAGS@
+CFLAGS=@CFLAGS@ ${DEBUG} ${FPIC}
ALL_CFLAGS=${CFLAGS} -DSYSCONFDIR=\"${sysconfdir}\" -I${top_srcdir}/h \
-I${BUILDTOP}/h ${CPPFLAGS}
ZSendPkt.o ZSendRaw.o ZSendRLst.o ZSetDest.o ZSetFD.o ZSetSrv.o \
ZSubs.o ZVariables.o ZWait4Not.o Zinternal.o
-all: libzephyr.a
+LIBEXT=a
+all: libzephyr.$(LIBEXT)
libzephyr.a: ${OBJS}
ar cru $@ ${OBJS}
${RANLIB} $@
+libzephyr.so: $(OBJS)
+ ld -shared -soname libzephyr.so.$(SONAME) -o libzephyr.so $(OBJS) -lkrb4 -ldes425 -lkrb5 -lk5crypto -lc -lcom_err
+
zephyr_err.c ${BUILDTOP}/h/zephyr/zephyr_err.h: zephyr_err.et
compile_et ${srcdir}/zephyr_err.et
mv zephyr_err.h ${BUILDTOP}/h/zephyr
check:
-install: libzephyr.a
- ${INSTALL} -m 644 libzephyr.a ${DESTDIR}${libdir}
+install: libzephyr.$(LIBEXT)
+ -${INSTALL} -m 644 libzephyr.a ${DESTDIR}${libdir}
+ -$(INSTALL) -m 644 libzephyr.so ${DESTDIR}$(libdir)
+
${INSTALL} -m 644 ${srcdir}/zephyr.1 ${DESTDIR}${mandir}/man1
clean: