summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-14 19:48:31 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-14 19:48:31 +0300
commitf6fb8b0d084adbec3e0332307e95982a5daa6a92 (patch)
treeda9600db390d526d4a21aba7e1dd450c8fc2d637
parentc0448c2536b7fb05e3db7d3f30bd49ca3642854f (diff)
downloadbase-files-f6fb8b0d084adbec3e0332307e95982a5daa6a92.tar.gz
postinst: illumos aware
-rw-r--r--debian/1777-dirs1
-rw-r--r--debian/directory-list3
-rw-r--r--debian/postinst.in21
3 files changed, 0 insertions, 25 deletions
diff --git a/debian/1777-dirs b/debian/1777-dirs
index c92add2..12719a5 100644
--- a/debian/1777-dirs
+++ b/debian/1777-dirs
@@ -1,3 +1,2 @@
tmp
-var/lock
var/tmp
diff --git a/debian/directory-list b/debian/directory-list
index 12d0efa..8333f27 100644
--- a/debian/directory-list
+++ b/debian/directory-list
@@ -10,9 +10,7 @@ etc/skel
home
kernel
lib
-media
mnt
-opt
platform
proc
root
@@ -45,7 +43,6 @@ var/lib
var/lib/dpkg
var/lib/misc
var/local
-var/lock
var/log
var/run
var/spool
diff --git a/debian/postinst.in b/debian/postinst.in
index b5dad41..6b9520d 100644
--- a/debian/postinst.in
+++ b/debian/postinst.in
@@ -51,9 +51,6 @@ if [ "$1" = "configure" ] && [ "$2" = "" ]; then
if [ ! -L /var/spool/mail ]; then
ln -s ../mail /var/spool/mail
fi
- install_directory run/lock 1777 root
- migrate_directory /var/run /run
- migrate_directory /var/lock /run/lock
install_local_dir /usr/local
install_local_dir /usr/local/share
@@ -66,24 +63,6 @@ if [ "$1" = "configure" ] && [ "$2" = "" ]; then
install_local_dir /usr/local/src
install_local_dir /usr/local/etc
ln -sf share/man /usr/local/man
-
- if [ ! -f /var/log/wtmp ]; then
- echo -n>/var/log/wtmp
- fi
- if [ ! -f /var/log/btmp ]; then
- echo -n>/var/log/btmp
- fi
- if [ ! -f /var/log/lastlog ]; then
- echo -n>/var/log/lastlog
- fi
- chown root:utmp /var/log/wtmp /var/log/btmp /var/log/lastlog
- chmod 664 /var/log/wtmp /var/log/lastlog
- chmod 660 /var/log/btmp
- if [ ! -f /var/run/utmp ]; then
- echo -n>/var/run/utmp
- fi
- chown root:utmp /var/run/utmp
- chmod 664 /var/run/utmp
fi
if [ ! -d /var/lib/dpkg ]; then