summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar aeb 2000-11-24 01:03:43 +0000
committerGravatar aeb 2000-11-24 01:03:43 +0000
commit670ce6c77a1a884cb8002e13cff380909dada3bc (patch)
treed578f1ab2fe92acc4b3798c2bc966c9823519aad
parentAdd ldconfig in deb postinst for Debian policy conformance. (diff)
Added libraw1394.postinst.in to list of distributed files.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@43 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to '')
-rw-r--r--debian/Makefile.am2
-rw-r--r--debian/libraw1394.postinst.in32
-rw-r--r--debian/rules4
3 files changed, 35 insertions, 3 deletions
diff --git a/debian/Makefile.am b/debian/Makefile.am
index 330f2f0..93e5600 100644
--- a/debian/Makefile.am
+++ b/debian/Makefile.am
@@ -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
diff --git a/debian/libraw1394.postinst.in b/debian/libraw1394.postinst.in
index 38bea86..8e91020 100644
--- a/debian/libraw1394.postinst.in
+++ b/debian/libraw1394.postinst.in
@@ -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#
diff --git a/debian/rules b/debian/rules
index f610f0e..d309604 100644
--- a/debian/rules
+++ b/debian/rules
@@ -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)/
3-1/+38 2000-09-13Fix raw1394_start_iso_write() which uses wrong variable.Gravatar aeb 1-1/+1 2000-09-10Work around compiler warnings for int/ptr casts.Gravatar aeb 6-10/+20 2000-09-10Added control files for Debian packages.Gravatar aeb 6-8/+106 2000-09-01Added missing prototypes for iso send functions.Gravatar aeb 1-0/+7 2000-08-08Added raw1394_get_irm_id().Gravatar aeb 7-7/+39 2000-08-06Added support for isochronous sending.Gravatar aeb 3-0/+35 2000-07-05Added raw1394_reset_bus() call.Gravatar aeb 4-0/+23 2000-06-22- Set library version info in configure.in, use in src/Makefile.am.Gravatar aeb 4-2/+16 2000-06-15Update libtool version number.Gravatar aeb 2-2/+2 2000-06-14Added copyright headers.Gravatar aeb 6-0/+54 2000-06-11Added explicit AC_PROG_INSTALL call.Gravatar aeb 1-0/+1 2000-06-09Fix size of error field.Gravatar aeb 1-2/+2 2000-06-02Modified support for 32/64 bit environments, control struct fields have fixed...Gravatar aeb 7-43/+28 2000-05-28Added support for environments with 64 bit kernel and 32 bit userland.Gravatar aeb 8-7/+45 2000-04-27Fixed missing setting of ext code in raw1394_start_lock()Gravatar aeb 1-0/+1 2000-04-15Fixed lock transaction to actually return response value.Gravatar aeb 3-5/+11 2000-04-12Add userdata functions as news.Gravatar aeb 1-0/+4 2000-04-05Add userdata functions.Gravatar aeb 3-0/+18 2000-03-18Bump version number to 0.6.Gravatar aeb 3-5/+6 2000-03-18Mention byte order change.Gravatar aeb 1-0/+2 2000-03-18Mention SourceForge home.Gravatar aeb 1-1/+5