ssmtp: change symlink handling 2891/head
authorDirk Brenken <dev@brenken.org>
Thu, 23 Jun 2016 19:14:20 +0000 (21:14 +0200)
committerDirk Brenken <dev@brenken.org>
Tue, 5 Jul 2016 16:13:58 +0000 (18:13 +0200)
* sendmail symlink handling is no longer forced and part of install step

Signed-off-by: Dirk Brenken <dev@brenken.org>
mail/ssmtp/Makefile

index 4590c7f1c8e853a6d0eaa7877ddd83e6fccb3c2c..81769162f218cfce801d190e99104e6f4139f7e3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ssmtp
 PKG_VERSION:=2.64
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 PKG_LICENSE:=GPL-2.0+
 
@@ -53,11 +53,7 @@ define Package/$(PKG_NAME)/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/
-endef
-
-define Package/$(PKG_NAME)/postinst
-#!/bin/sh
-ln -sf ssmtp $${IPKG_INSTROOT}/usr/sbin/sendmail
+       ln -s /usr/sbin/ssmtp $(1)/usr/sbin/sendmail
 endef
 
 $(eval $(call BuildPackage,$(PKG_NAME)))