summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-03-02 17:56:42 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-03-02 17:56:42 +0400
commit3a60b0754371920f49564287ebe4e1df1f43bcfa (patch)
treeac1ffc94a98e760fe6ca0f87c06dc0e5360320cf
parent9947c3a0910c756cd61a336b3fbb36cb0132479f (diff)
downloaddriverdb-3a60b0754371920f49564287ebe4e1df1f43bcfa.tar.gz
Install files directly to /etc
-rw-r--r--debian/install1
-rw-r--r--debian/postinst21
-rwxr-xr-xdebian/rules4
3 files changed, 1 insertions, 25 deletions
diff --git a/debian/install b/debian/install
index 92c0d2e..8340d73 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,4 @@
+debian/db/etc/* etc/
debian/iu.ap /etc/
debian/mach /etc/
debian/master /boot/solaris/devicedb/
diff --git a/debian/postinst b/debian/postinst
index e01c7d8..46ec581 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -2,29 +2,8 @@
set -e
-seed=/usr/share/driverdb
-
-
-configure_file () {
- if ! [ -e "$1" ]; then
- echo "Installing new default file \`$1'"
- gzip -d -c "$seed/$1.gz" > "$1"
- fi
-}
-
-do_configure() {
- configure_file /etc/devlink.tab
- configure_file /etc/driver_aliases
- configure_file /etc/driver_classes
- configure_file /etc/minor_perm
- configure_file /etc/name_to_major
- configure_file /etc/security/device_policy
- configure_file /etc/security/extra_privs
-}
-
case "$1" in
configure)
- do_configure
dpkg-trigger boot-archive
;;
esac
diff --git a/debian/rules b/debian/rules
index e7f690b..a6d2ac0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,10 +29,6 @@ unpack-illumos-stamp:
install-stamp:
dh_testdir
- rm -rf debian/driverdb
- mkdir -p debian/driverdb/usr/share/driverdb
- cp -r debian/db/* debian/driverdb/usr/share/driverdb/
- find debian/driverdb/usr/share/driverdb -type f -print -exec gzip -f -9 {} \;
dh_installdirs
dh_install
dh_installdocs