X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Fssmtp%2FMakefile;h=b6364945d3b9ca00c43290f5c397bf537ab57176;hp=8215a548d71d8c08d34eedd20c60532011dc6f4d;hb=47513ff0c06136cddb18a83f96849765ec4959a6;hpb=aad785e5f48e14d5cdf9280fce4e76e07db62319 diff --git a/net/ssmtp/Makefile b/net/ssmtp/Makefile index 8215a548d7..b6364945d3 100644 --- a/net/ssmtp/Makefile +++ b/net/ssmtp/Makefile @@ -10,41 +10,48 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ssmtp PKG_VERSION:=2.61 -PKG_RELEASE:=1 -PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9 +PKG_RELEASE:=2 -PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/ PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/ +PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9 PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +EXTRA_LDFLAGS+=-Wl,-rpath-link,$(STAGING_DIR)/usr/lib +TARGET_CONFIGURE_OPTS+=\ + CC="$(TARGET_CC) $(EXTRA_LDFLAGS)" include $(INCLUDE_DIR)/package.mk define Package/ssmtp SECTION:=net CATEGORY:=Network + DEPENDS:=+libopenssl TITLE:=A minimal and secure mail sender - DESCRIPTION:=A secure, effective and simple way of getting mail off a system to your\\\ - mail hub. It contains no suid-binaries or other dangerous things - no\\\ + DESCRIPTION:=\ + A secure, effective and simple way of getting mail off a system to your \\\ + mail hub. It contains no suid-binaries or other dangerous things - no \\\ mail spool to poke around in, and no daemons running in the background.\\\ - mail is simply forwarded to the configured mailhost. Extremely easy\\\ + mail is simply forwarded to the configured mailhost. Extremely easy \\\ configuration. URL:=http://packages.debian.org/stable/mail/ssmtp endef +# uses GNU configure -define Build/Compile -$(call Build/Compile/Default,all) +define Build/Configure + $(call Build/Configure/Default, \ + --enable-ssl \ + ) endef define Package/ssmtp/install - install -m0755 -d $(1)/etc/ssmtp - install -m0644 $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/ - install -m0644 $(PKG_BUILD_DIR)/revaliases $(1)/etc/ssmtp/ - install -m0755 -d $(1)/usr/sbin - $(CP) $(PKG_BUILD_DIR)/ssmtp $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/ssmtp + $(INSTALL_DATA) $(PKG_BUILD_DIR)/ssmtp.conf $(1)/etc/ssmtp/ + $(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