update sqlite2 to new upstream release (v2.8.17),
[openwrt.git] / package / ssmtp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ssmtp
6 PKG_VERSION:=2.61
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=957e6fff08625fe34f4fc33d0925bbc9
9
10 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/s/ssmtp/
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 BR2_PACKAGE_SSMTP=m
20
21 $(eval $(call PKG_template,SSMTP,ssmtp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
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" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_NLS) \
48 $(DISABLE_LARGEFILE) \
49 );
50 touch $@
51
52 $(PKG_BUILD_DIR)/.built:
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 all
55 touch $@
56
57 $(IPKG_SSMTP):
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)
66
This page took 0.04273 seconds and 5 git commands to generate.