Changeset 20406


Ignore:
Timestamp:
2010-03-24T17:37:17+01:00 (8 years ago)
Author:
nico
Message:

[packages] mini_sendmail, msmtp, nullmailer, ssmtp: don't ship sendmail symlink, create it at postinstall time

Location:
packages/mail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • packages/mail/mini_sendmail/Makefile

    r15247 r20406  
    11# 
    2 # Copyright (C) 2007-2008 OpenWrt.org 
     2# Copyright (C) 2007-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=mini-sendmail 
    1111PKG_VERSION:=1.3.6 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=mini_sendmail-$(PKG_VERSION).tar.gz 
     
    4040        $(INSTALL_DIR) $(1)/usr/sbin 
    4141        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mini_sendmail $(1)/usr/sbin/ 
    42         ln -sf mini_sendmail $(1)/usr/sbin/sendmail 
     42endef 
     43 
     44define Package/mini-sendmail/postinstall 
     45        ln -sf mini_sendmail $${IPKG_INSTROOT}/usr/sbin/sendmail 
    4346endef 
    4447 
  • packages/mail/msmtp/Makefile

    r19901 r20406  
    1111PKG_NAME:=msmtp 
    1212PKG_VERSION:=1.4.19 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    100100        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/msmtp $(1)/usr/bin/msmtp 
    101101        $(INSTALL_DIR) $(1)/usr/sbin 
    102         ln -sf /usr/bin/msmtp $(1)/usr/sbin/sendmail 
     102endef 
     103 
     104define Package/msmtp/postinstall 
     105        ln -sf ../bin/msmtp $${IPKG_INSTROOT}/usr/sbin/sendmail 
    103106endef 
    104107 
    105108Package/msmtp-nossl/install = $(Package/msmtp/install) 
     109Package/msmtp-nossl/postinstall = $(Package/msmtp/postinstall) 
    106110 
    107111$(eval $(call BuildPackage,msmtp)) 
  • packages/mail/nullmailer/Makefile

    r20109 r20406  
    11# 
    2 # Copyright (C) 2007-2009 OpenWrt.org 
     2# Copyright (C) 2007-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=nullmailer 
    1111PKG_VERSION:=1.05 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     
    4242        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-queue $(1)/usr/sbin/ 
    4343        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/nullmailer-send $(1)/usr/sbin/ 
    44         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/ 
     44        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/sendmail $(1)/usr/sbin/nullmailer-sendmail 
    4545        $(INSTALL_DIR) $(1)/usr/lib/nullmailer 
    4646        $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/qmqp $(1)/usr/lib/nullmailer/ 
    4747        $(INSTALL_BIN) $(PKG_BUILD_DIR)/protocols/smtp $(1)/usr/lib/nullmailer/ 
    48         ln -sf ../sbin/sendmail $(1)/usr/lib/ 
     48endef 
     49 
     50define Package/nullmailer/postinstall 
     51        ln -sf ../sbin/sendmail $(1)/usr/lib/sendmail 
     52        ln -sf nullmailer-sendmail $(1)/usr/sbin/sendmail 
    4953endef 
    5054 
  • packages/mail/ssmtp/Makefile

    r19112 r20406  
    1010PKG_NAME:=ssmtp 
    1111PKG_VERSION:=2.64 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.bz2 
     
    5353        $(INSTALL_DIR) $(1)/usr/sbin 
    5454        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/ 
    55         ln -sf ssmtp $(1)/usr/sbin/sendmail 
     55endef 
     56 
     57define Package/ssmtp/postinstall 
     58        ln -sf ssmtp $${IPKG_INSTROOT}/usr/sbin/sendmail 
    5659endef 
    5760 
Note: See TracChangeset for help on using the changeset viewer.