Prevent l2tpd from using PMTU discovery, setting the DF bit on all outgoing UDP packe...
[openwrt/svn-archive/archive.git] / openwrt / package / ctorrent / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ctorrent
4 PKG_VERSION:=1.3.4-dnh2
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
7
8 PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-dnh2
11 PKG_CAT:=zcat
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
23 LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --exec-prefix=/usr \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --libexecdir=/usr/lib \
33 --sysconfdir=/etc \
34 --datadir=/usr/share \
35 --localstatedir=/var \
36 --mandir=/usr/man \
37 --infodir=/usr/info \
38 --program-prefix="" \
39 --with-gnu-ld \
40 );
41 touch $@
42
43 $(PKG_BUILD_DIR)/.built:
44 $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) install
45
46 $(IPKG_CTORRENT):
47 mkdir -p $(IDIR_CTORRENT)
48 $(CP) $(PKG_INSTALL_DIR)/* $(IDIR_CTORRENT)/
49 $(RSTRIP) $(IDIR_CTORRENT)/
50 $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)