summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-18 14:21:55 -0700
committerAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-18 14:21:55 -0700
commit9c04f3d77a812f648842c72e70f17acfdd08c6b6 (patch)
tree0688bb9f26df240aa44650ac8b38d2c0f530c727
parentc38f1d8ace7ba12d05954ab3374f3bbea6c13d46 (diff)
downloadvyatta-cfg-system-9c04f3d77a812f648842c72e70f17acfdd08c6b6.tar.gz
vyatta-cfg-system-9c04f3d77a812f648842c72e70f17acfdd08c6b6.zip
add dependency and postinst
-rw-r--r--.gitignore1
-rw-r--r--configure.ac1
-rw-r--r--debian/control2
-rw-r--r--debian/vyatta-cfg-system.postinst.in8
4 files changed, 11 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ef8441c2..b93dadac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@
/configure
/debian/files
/debian/vyatta-cfg-system
+/debian/vyatta-cfg-system.postinst
/INSTALL
/Makefile.in
/Makefile
diff --git a/configure.ac b/configure.ac
index aca95c7f..d4a46fab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,7 @@ AC_ARG_ENABLE([nostrip],
AC_CONFIG_FILES(
[Makefile]
+ [debian/vyatta-cfg-system.postinst]
[scripts/install-system])
AC_SUBST(NOSTRIP)
diff --git a/debian/control b/debian/control
index 275ce680..d0095055 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Depends: bash (>= 3.1),
perl (>= 5.8.8),
procps (>= 1:3.2.7-3),
coreutils (>= 5.97-5.3),
- vyatta-cfg
+ vyatta-cfg, sysv-rc, ifrename, ntp, sysklogd
Suggests: util-linux (>= 2.13-5),
net-tools,
ethtool,
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
new file mode 100644
index 00000000..39c4e4d1
--- /dev/null
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+prefix=@prefix@
+sysconfdir=@sysconfdir@
+
+# remove init of daemons that we manage
+update-rc.d -f ntp remove >/dev/null
+