summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-30 21:11:26 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-30 21:11:26 +0000
commit92cb889db9fab6cb42485e687946ba4907d8353b (patch)
tree6eddb40bd416652af73c0ef46d88f61d5639c115 /packages
parentd80eceba4710efe2b33f542c34a435786a157ca0 (diff)
Fix hardcoded paths, and create dirs in image before trying to copy files there
Diffstat (limited to 'packages')
-rw-r--r--packages/postfix/postfix_2.0.20.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/postfix/postfix_2.0.20.bb b/packages/postfix/postfix_2.0.20.bb
index 4ef569b309..cbc2e03f1f 100644
--- a/packages/postfix/postfix_2.0.20.bb
+++ b/packages/postfix/postfix_2.0.20.bb
@@ -1,7 +1,7 @@
SECTION = "console/network"
DEPENDS = "db3 pcre postfix-native"
LICENSE = "IPL"
-PR = "r4"
+PR = "r5"
SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \
file://${FILESDIR}/makedefs.patch;patch=1 \
@@ -32,9 +32,12 @@ do_compile () {
do_install () {
sh ./postfix-install 'install_root=${D}' -non-interactive
- rm -rf ${D}/var/spool/postfix
+ rm -rf ${D}${localstatedir}/spool/postfix
mv ${D}${sysconfdir}/postfix/main.cf ${D}${sysconfdir}/postfix/sample-main.cf
- install -m 755 ${WORKDIR}/main.cf_2.0 ${D}/var/tmp/main_cf.sh
+ install -d ${D}${localstatedir}/tmp
+ install -d ${D}${sysconfdir}/default/volatiles
+ install -d ${D}${sysconfdir}/init.d
+ install -m 755 ${WORKDIR}/main.cf_2.0 ${D}${localstatedir}/tmp/main_cf.sh
install -m 644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/01_postfix
install -m 755 ${WORKDIR}/postfix ${D}${sysconfdir}/init.d/postfix
mv ${D}${sbindir}/sendmail ${D}${sbindir}/sendmail.${PN}