3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=957e6fff08625fe34f4fc33d0925bbc9
10 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/s
/ssmtp
/
11 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
21 $(eval
$(call PKG_template
,SSMTP
,ssmtp
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
24 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
25 $(TARGET_CONFIGURE_OPTS
) \
26 CFLAGS
="$(TARGET_CFLAGS)" \
27 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
52 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 install -m0755
-d
$(IDIR_SSMTP
)/etc
/ssmtp
59 install -m0644
$(PKG_BUILD_DIR
)/ssmtp.conf
$(IDIR_SSMTP
)/etc
/ssmtp
/
60 install -m0644
$(PKG_BUILD_DIR
)/revaliases
$(IDIR_SSMTP
)/etc
/ssmtp
/
61 install -m0755
-d
$(IDIR_SSMTP
)/usr
/sbin
62 cp
-fpR
$(PKG_BUILD_DIR
)/ssmtp
$(IDIR_SSMTP
)/usr
/sbin
/
63 ln
-sf ssmtp
$(IDIR_SSMTP
)/usr
/sbin
/sendmail
64 $(RSTRIP
) $(IDIR_SSMTP
)
65 $(IPKG_BUILD
) $(IDIR_SSMTP
) $(PACKAGE_DIR
)