Added libraw1394.postinst.in to list of distributed files.

git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@43 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
aeb 2000-11-24 01:03:43 +00:00
parent 0966e80dce
commit 670ce6c77a
3 changed files with 35 additions and 3 deletions

2
debian/Makefile.am vendored
View File

@ -1,3 +1,3 @@
# process this file with automake to create a Makefile.in
EXTRA_DIST = control rules changelog copyright
EXTRA_DIST = control rules changelog copyright libraw1394.postinst.in

View File

@ -2,6 +2,38 @@
if [ "$1" = "configure" ]; then
ldconfig usr/lib/@libname@
if [ ! -c /dev/raw1394 ]; then
echo
echo "Required /dev/raw1394 device file not found."
echo "Without it, libraw1394 is quite useless as it can't talk"
echo "to the kernel driver."
echo
echo -n "Should I create it for you? [N/y] "
read REPLY
case "$REPLY" in
y|yes)
mknod -m600 /dev/raw1394 c 171 0
chown root.root /dev/raw1394
echo
echo "/dev/raw1394 created."
echo "It is owned by root with permissions 600. You may want to fix"
echo "the group/permission to something appropriate for you."
echo "Note however that anyone who can open raw1394 can access all"
echo "devices on all connected 1394 buses unrestricted, including"
echo "harddisks and other probably sensitive devices."
;;
*)
echo
echo "/dev/raw1394 not created."
echo "You can create it at a later time using /dev/MAKEDEV if you"
echo "have a version that already knows raw1394 or you can create"
echo "it manually with the command:"
echo "mknod -m600 /dev/raw1394 c 171 0"
;;
esac
fi
fi
#DEBHELPER#

4
debian/rules vendored
View File

@ -29,7 +29,7 @@ clean: autoclean-files
-$(MAKE) distclean
dh_clean
xargs <autoclean_files rm -f
xargs <autoclean-files rm -f
install: build
dh_testdir
@ -50,7 +50,7 @@ binary-arch: build install autoclean-files
usr/lib/$(majorname) \
usr/lib/$(fullversionname)
echo debian/libraw1394-$(major).postinst >>autoclean_files
echo debian/libraw1394-$(major).postinst >>autoclean-files
sed <debian/libraw1394.postinst.in >debian/libraw1394-$(major).postinst \
-e s/@libname@/$(fullversionname)/