-Package: comedi-modules-${kvers}
+Source: comedi
+Priority: optional
+Maintainer: David Schleef <ds@schleef.org>
+Build-Depends: debhelper (>> 2.0.0)
+Standards-Version: 3.5.6
+
+Package: comedi-modules-$KVERS
Section: admin
Architecture: any
Description: Comedi modules
+++ /dev/null
-comedi-modules_0.7.63-cvs20020210-1_i386.deb admin optional
+++ /dev/null
-#!/bin/sh
-# genchanges.sh - generate a changes file for a deb file generated via
-# the make-kpkg utility
-
-# KSRC KMAINT and KEMAIL are expected to be passed through the environment
-
-set -e
-umask 022
-
-KVERS=`cat debian/KVERS`
-MODVERS=`cat debian/MODVERS`
-ARCH=`dpkg --print-architecture`
-
-# determine the maintainer's name
-for name in "$KMAINT" "$DEBFULLNAME" "$DEBNAME"
-do test -n "$name" && break; done
-for email in "$KEMAIL" "$DEBEMAIL"
-do test -n "$email" && break; done
-if [ "$name" -a "$email" ]; then maint="$name <$email>"
-elif [ "$email" ]; then maint="$email"
-else maint=""; fi
-
-dpkg-genchanges -b ${maint:+-e"$maint"} -u"$KSRC/.." \
-
-# the changes file's name
-chfile="$KSRC/../pcmcia-modules-${KVERS}_${MODVERS}_${ARCH}.changes"
-
-dpkg-genchanges -b ${KMAINT:+-e"$maint"} -u"$KSRC/.." \
- -cdebian/control.tmp > "$chfile.pt"
-if test -e "${GNUPGHOME:-$HOME/.gnupg/secring.gpg}"; then
- gpg -ast ${email:+-u"$email"} \
- --clearsign < "$chfile.pt" > "$chfile"
-else
- pgp -fast ${email:+-u"$email"} +clearsig=on \
- < "$chfile.pt" > "$chfile"
-fi
-rm "$chfile.pt"
# architecture-dependant package, as well as an architecture-independent
# package.
-#p_mod=comedi-modules-$(KVERS)
-p_mod=comedi-modules
+p_mod=comedi-modules-$(KVERS)
+#p_mod=comedi-modules
d_mod=debian/$(p_mod)
+.PHONY: kdist_image
kdist_image: checkroot
$(RM) debian/files
yes "" | ./configure --linuxdir $(KSRC) --non-interactive --reconf
$(d_mod)/usr/share/doc/$(p_mod)/copyright
chown -R root.root $(d_mod)
chmod -R g-ws $(d_mod)
+ echo "kpkg:Package-Version=$(epoch)$(pversion)+$(non_epoch_version)" \
+ >> debian/substvars
+ echo "kpkg:Kernel-Version=$(KVERS)" >> debian/substvars
+ sed 's/\$$KVERS/$(KVERS)/' debian/comedi-modules.control >debian/control
dpkg-gencontrol -p$(p_mod) -P$(d_mod) -isp
dpkg-deb --build $(d_mod) $(KSRC)/..
-kdist_changes:
-
-kdist_configure:
+.PHONY: kdist_config
+kdist_config:
+ echo "****** kdist_configure *****"
+ env
+ yes "" | ./configure --linuxdir $(KSRC) --non-interactive --reconf
-kdist: kdist_image
- #$(RM) -r $(d_mod)
-
+.PHONY: kdist_clean clean
kdist_clean clean:
$(MAKE) distclean
$(RM) -r debian/tmp $(d_mod) debian/src debian/*~ \
- debian/files debian/control.tmp debian/substvars
+ debian/files debian/substvars
build:
-clean-modules:
- -umask 022; $(MAKE) DEB_MOD=yes clean
- $(RM) build-modules
-
+.PHONY: binary-source
binary-source: checkroot
$(RM) -r debian/src
install -d debian/src debian/src/DEBIAN
dpkg-gencontrol -pcomedi-source -Pdebian/src -isp
dpkg-deb --build debian/src ..
+.PHONY: binary-arch
binary-arch:
+.PHONY: binary-indep
binary-indep: binary-source
checkroot:
test root = "`whoami`"
+.PHONY: binary
binary: binary-indep
-.PHONY: build clean binary-indep binary-arch binary install configure