Fix postinst ldconfig.
Fix device file creation. Install NEWS and README as documentation in the dev package. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@46 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
parent
02154eb2c2
commit
c7d326137e
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
if [ "$1" = "configure" ]; then
|
if [ "$1" = "configure" ]; then
|
||||||
ldconfig usr/lib/@libname@
|
ldconfig
|
||||||
|
|
||||||
if [ ! -c /dev/raw1394 ]; then
|
if [ ! -c /dev/raw1394 ]; then
|
||||||
echo
|
echo
|
||||||
|
@ -9,20 +9,21 @@ if [ "$1" = "configure" ]; then
|
||||||
echo "Without it, libraw1394 is quite useless as it can't talk"
|
echo "Without it, libraw1394 is quite useless as it can't talk"
|
||||||
echo "to the kernel driver."
|
echo "to the kernel driver."
|
||||||
echo
|
echo
|
||||||
echo -n "Should I create it for you? [N/y] "
|
echo -n "Should I create it for you? [Y/n] "
|
||||||
read REPLY
|
read REPLY
|
||||||
|
|
||||||
case "$REPLY" in
|
case "$REPLY" in
|
||||||
y|yes)
|
y|yes|"")
|
||||||
mknod -m600 /dev/raw1394 c 171 0
|
mknod -m600 /dev/raw1394 c 171 0
|
||||||
chown root.root /dev/raw1394
|
chown root.root /dev/raw1394
|
||||||
echo
|
echo
|
||||||
echo "/dev/raw1394 created."
|
echo "/dev/raw1394 created."
|
||||||
echo "It is owned by root with permissions 600. You may want to fix"
|
echo "It is owned by root with read/write permissions for root."
|
||||||
echo "the group/permission to something appropriate for you."
|
echo "You may want to fix the group/permission to something"
|
||||||
echo "Note however that anyone who can open raw1394 can access all"
|
echo "appropriate for you. Note however that anyone who can open"
|
||||||
echo "devices on all connected 1394 buses unrestricted, including"
|
echo "raw1394 can access all devices on all connected 1394 buses"
|
||||||
echo "harddisks and other probably sensitive devices."
|
echo "unrestricted, including harddisks and other probably"
|
||||||
|
echo "sensitive devices."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -51,10 +51,9 @@ binary-arch: build install autoclean-files
|
||||||
usr/lib/$(fullversionname)
|
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 \
|
cp debian/libraw1394.postinst.in debian/libraw1394-$(major).postinst
|
||||||
-e s/@libname@/$(fullversionname)/
|
|
||||||
|
|
||||||
dh_installdocs
|
dh_installdocs README NEWS
|
||||||
dh_installchangelogs
|
dh_installchangelogs
|
||||||
dh_strip
|
dh_strip
|
||||||
dh_compress
|
dh_compress
|
||||||
|
|
Reference in New Issue