[packages] mini_sendmail, msmtp, nullmailer, ssmtp: don't ship sendmail symlink,...
authorNicolas Thill <nico@openwrt.org>
Wed, 24 Mar 2010 16:37:17 +0000 (16:37 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 24 Mar 2010 16:37:17 +0000 (16:37 +0000)
SVN-Revision: 20406

mail/mini_sendmail/Makefile
mail/msmtp/Makefile
mail/nullmailer/Makefile
mail/ssmtp/Makefile

index 28bff30..ed63077 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007-2008 OpenWrt.org
+# Copyright (C) 2007-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mini-sendmail
 PKG_VERSION:=1.3.6
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=mini_sendmail-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.acme.com/software/mini_sendmail/
@@ -39,7 +39,10 @@ MAKE_FLAGS += \
 define Package/mini-sendmail/install   
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mini_sendmail $(1)/usr/sbin/
-       ln -sf mini_sendmail $(1)/usr/sbin/sendmail
+endef
+
+define Package/mini-sendmail/postinstall
+       ln -sf mini_sendmail $${IPKG_INSTROOT}/usr/sbin/sendmail
 endef
 
 $(eval $(call BuildPackage,mini-sendmail))
index c8517ff..7abe644 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=msmtp
 PKG_VERSION:=1.4.19
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=@SF/msmtp
@@ -99,10 +99,14 @@ define Package/msmtp/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/msmtp $(1)/usr/bin/msmtp
        $(INSTALL_DIR) $(1)/usr/sbin
-       ln -sf /usr/bin/msmtp $(1)/usr/sbin/sendmail
+endef
+
+define Package/msmtp/postinstall
+       ln -sf ../bin/msmtp $${IPKG_INSTROOT}/usr/sbin/sendmail
 endef
 
 Package/msmtp-nossl/install = $(Package/msmtp/install)
+Package/msmtp-nossl/postinstall = $(Package/msmtp/postinstall)
 
 $(eval $(call BuildPackage,msmtp))
 $(eval $(call BuildPackage,msmtp-nossl))
index 531474b..13841bc 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2007-2009 OpenWrt.org
+# Copyright (C) 2007-2010 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nullmailer
 PKG_VERSION:=1.05
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://untroubled.org/nullmailer/
@@ -41,11 +41,15 @@ define Package/nullmailer/install
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-queue $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-send $(1)/usr/sbin/
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/nullmailer-sendmail
        $(INSTALL_DIR) $(1)/usr/lib/nullmailer
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/qmqp $(1)/usr/lib/nullmailer/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/smtp $(1)/usr/lib/nullmailer/
-       ln -sf ../sbin/sendmail $(1)/usr/lib/
+endef
+
+define Package/nullmailer/postinstall
+       ln -sf ../sbin/sendmail $(1)/usr/lib/sendmail
+       ln -sf nullmailer-sendmail $(1)/usr/sbin/sendmail
 endef
 
 $(eval $(call BuildPackage,nullmailer))
index 93b0fe5..d4dea8b 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ssmtp
 PKG_VERSION:=2.64
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.bz2
 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp
@@ -52,7 +52,10 @@ define Package/ssmtp/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
-       ln -sf ssmtp $(1)/usr/sbin/sendmail
+endef
+
+define Package/ssmtp/postinstall
+       ln -sf ssmtp $${IPKG_INSTROOT}/usr/sbin/sendmail
 endef
 
 $(eval $(call BuildPackage,ssmtp))