Update Debian files.

git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@120 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
bencollins 2003-07-13 01:40:37 +00:00
parent 1688f1a129
commit f2f611bb61
4 changed files with 73 additions and 25 deletions

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
4

11
debian/libraw1394.config.in vendored Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
. /usr/share/debconf/confmodule
db_version 2.0
if [ "$1" = "configure" ]; then
if [ ! -c /dev/.devfsd -a ! -c /dev/raw1394 ]; then
db_input low libraw1394/device_node || true
db_go
fi
fi

16
debian/libraw1394.templates.in vendored Normal file
View File

@ -0,0 +1,16 @@
Template: libraw1394/device_node
Type: note
Description: Check that /dev/raw1394 permissions are appropriate for you.
The device file /dev/raw1394 will be created for libraw1394. This library is
used by applications to access FireWire devices.
.
The default access permissions allows only users in the "disk" group. This
restrictive setting was chosen since raw1394 allows almost full access to the
FireWire bus and all connected devices are accessible, which may include hard
disks.
.
If you don't intend to connect sensitive devices and e.g. only want to get
video streams out of a camera, you can relax the permissions. If you don't
have malicious users on your system, you can allow access for all users with
this command (executed as the root user):
chmod 666 /dev/raw1394

70
debian/rules vendored
View File

@ -1,36 +1,48 @@
#!/usr/bin/make -f #!/usr/bin/make -f
export DH_COMPAT=3 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
majorname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 2) ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
fullversionname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 1) CFLAGS ?= -O2 -Wall -g
else
CFLAGS ?= -O0 -Wall -g
endif
export DEB_HOST_GNU_TYPE DEB_BUILD_GNU_TYPE CFLAGS
majorname = $(shell grep library_names src/libraw1394.la \
| cut -d"'" -f 2 | cut -d" " -f 2)
fullversionname = $(shell grep library_names src/libraw1394.la \
| cut -d"'" -f 2 | cut -d" " -f 1)
major = $(shell echo $(majorname) | cut -d"." -f 3)
major = 5
libraw = libraw1394-$(major) libraw = libraw1394-$(major)
source-version = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f 2)
# maintainer files for the so package (of the name $(libraw)) autoclean-files:
somaint = postinst config templates echo $@ >$@
build: build-stamp build: build-stamp
build-stamp: build-stamp:
dh_testdir dh_testdir
./configure --prefix=/usr --mandir=\$${prefix}/share/man ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info
$(MAKE) $(MAKE)
$(MAKE) -C doc libraw1394.pdf
touch build-stamp touch build-stamp
clean: clean: autoclean-files
dh_testdir dh_testdir
dh_testroot dh_testroot
rm -f build-stamp $(somaint:%=debian/$(libraw).%) rm -f build-stamp
-$(MAKE) distclean -$(MAKE) distclean
dh_clean dh_clean
xargs <autoclean-files rm -f
install: build install: build
dh_testdir dh_testdir
@ -38,39 +50,47 @@ install: build
dh_clean -k dh_clean -k
dh_installdirs dh_installdirs
$(MAKE) install prefix=`pwd`/debian/tmp/usr $(MAKE) install DESTDIR=`pwd`/debian/tmp
binary-indep: build install binary-indep: build install
# Nothing to do here # Nothing to do here
binary-arch: build install binary-arch: build install autoclean-files
dh_testdir dh_testdir
dh_testroot dh_testroot
for i in $(somaint); do \
ln -sf libraw1394.$$i.in debian/$(libraw).$$i; \
done
dh_movefiles -p$(libraw) \ dh_movefiles -p$(libraw) \
usr/lib/$(majorname) \ usr/lib/$(majorname) \
usr/lib/$(fullversionname) usr/lib/$(fullversionname)
dh_movefiles -plibraw1394-dev \ dh_movefiles -plibraw1394-dev \
usr/lib \ usr/bin/testlibraw \
usr/bin \
usr/include/libraw1394 \ usr/include/libraw1394 \
usr/share/aclocal/libraw1394.m4 usr/lib \
usr/share/aclocal \
usr/share/man
echo >>autoclean-files \
debian/substvars \
debian/shlibs.local
echo "soversion=$(major)" >>debian/substvars
for i in postinst templates config; do \
echo >>autoclean-files debian/$(libraw).$$i; \
cp debian/libraw1394.$$i.in debian/$(libraw).$$i; \
done
dh_installman
dh_installdocs dh_installdocs
dh_installchangelogs dh_installchangelogs
dh_installdebconf
dh_strip dh_strip
dh_compress dh_compress
dh_link
dh_fixperms dh_fixperms
dh_makeshlibs -V dh_makeshlibs
dh_installdebconf
dh_installdeb dh_installdeb
LD_PRELOAD='' dh_shlibdeps -v -ldebian/$(libraw)/usr/lib dh_shlibdeps -L $(libraw) -l debian/$(libraw)/usr/lib
dh_gencontrol dh_gencontrol
dh_md5sums dh_md5sums
dh_builddeb dh_builddeb