Ticket #7023: opentracker.patch.3

File opentracker.patch.3, 4.0 KB (added by anonymous, 7 years ago)

patch for opentracker and libowfat

Line 
1diff -urN package.changed/libowfat/Makefile package/libowfat/Makefile
2--- package.changed/libowfat/Makefile   1970-01-01 01:00:00.000000000 +0100
3+++ package/libowfat/Makefile   2010-03-31 23:40:48.000000000 +0200
4@@ -0,0 +1,46 @@
5+#
6+# Copyright (C) 2006-2008 OpenWrt.org
7+#
8+# This is free software, licensed under the GNU General Public License v2.
9+# See /LICENSE for more information.
10+#
11+
12+include $(TOPDIR)/rules.mk
13+
14+PKG_NAME:=libowfat
15+PKG_VERSION:=0.28
16+PKG_RELEASE:=1
17+
18+PKG_SOURCE_URL:=http://dl.fefe.de
19+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
20+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21+PKG_MD5SUM:=6bbee9a86506419657d87123b7a6f2c1
22+
23+
24+#PKG_CAT:=bzcat
25+
26+include $(INCLUDE_DIR)/package.mk
27+
28+
29+define Package/libowfat
30+ SECTION:=libs
31+ CATEGORY:=Libraries
32+ TITLE:=libowfat
33+ URL:=http://www.fefe.de/libowfat/
34+endef
35+
36+define Package/libowfat/install
37+       $(INSTALL_DIR) $(1)/usr/lib
38+#      $(INSTALL_DIR) $(1)/usr/include ?
39+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/*.o $(1)/usr/lib/
40+#      $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/ ?
41+       
42+endef
43+
44+define Package/libowfat/InstallDev
45+       $(INSTALL_DIR) $(1)/usr/include
46+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/
47+       $(INSTALL_BIN) $PKG_BUILD_DIR)/*.o $(1)/usr/lib/
48+endef
49+
50+$(eval $(call BuildPackage,libowfat))
51diff -urN package.changed/opentracker/files/opentracker.init package/opentracker/files/opentracker.init
52--- package.changed/opentracker/files/opentracker.init  1970-01-01 01:00:00.000000000 +0100
53+++ package/opentracker/files/opentracker.init  2010-03-31 23:41:37.000000000 +0200
54@@ -0,0 +1,16 @@
55+TART=10
56+STOP=15
57+
58+OPENTRACKER_BIN=/usr/bin/opentracker
59+
60+
61+start() {
62+
63+       echo "Starting opentracker"
64+       $OPENTRACKER_BIN &             
65+}
66+stop() {
67+       echo "Shutting down opentracker"
68+       killall opentracker
69+}     
70+
71diff -urN package.changed/opentracker/Makefile package/opentracker/Makefile
72--- package.changed/opentracker/Makefile        1970-01-01 01:00:00.000000000 +0100
73+++ package/opentracker/Makefile        2010-03-31 23:41:37.000000000 +0200
74@@ -0,0 +1,43 @@
75+#
76+# Copyright (C) 2006-2008 OpenWrt.org
77+#
78+# This is free software, licensed under the GNU General Public License v2.
79+# See /LICENSE for more information.
80+#
81+
82+include $(TOPDIR)/rules.mk
83+
84+PKG_NAME:=opentracker
85+PKG_VERSION:=0.1
86+PKG_RELEASE:=1
87+
88+PKG_SOURCE_URL:=http://page.mi.fu-berlin.de/pborgers
89+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
90+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
91+PKG_MD5SUM:=d59b2b72de8ff7ff20a8f8223e8b826a
92+
93+
94+
95+include $(INCLUDE_DIR)/package.mk
96+
97+
98+define Package/opentracker
99+ SECTION:=app
100+ CATEGORY:=Application
101+ TITLE:=opentracker
102+ URL:=http://erdgeist.org/arts/software/opentracker/
103+ DEPENDS:=+libowfat +zlib +libpthread
104+endef
105+
106+define Package/opentracker/description
107+ Opentracker - Bittorrent tracker
108+endef
109+
110+define Package/opentracker/install
111+       $(INSTALL_DIR) $(1)/usr/bin
112+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
113+       $(INSTALL_DIR) $(1)/etc/init.d
114+       $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker     
115+endef
116+
117+$(eval $(call BuildPackage,opentracker))
118diff -urN package.changed/opentracker/patches/100-opentracker.patch package/opentracker/patches/100-opentracker.patch
119--- package.changed/opentracker/patches/100-opentracker.patch   1970-01-01 01:00:00.000000000 +0100
120+++ package/opentracker/patches/100-opentracker.patch   2010-03-31 23:40:48.000000000 +0200
121@@ -0,0 +1,22 @@
122+--- opentracker-0.1/Makefile   2010-03-15 23:36:08.000000000 +0100
123++++ opentracker-0.1/Makefile   2010-03-15 23:37:10.000000000 +0100
124+@@ -14,8 +14,8 @@
125+
126+ # Debug flavour
127+ PREFIX?=..
128+-LIBOWFAT_HEADERS=$(PREFIX)/libowfat
129+-LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
130++LIBOWFAT_HEADERS=$(PREFIX)/libowfat-0.28
131++LIBOWFAT_LIBRARY=$(PREFIX)/libowfat-0.28
132+
133+ BINDIR?=$(PREFIX)/bin
134+
135+@@ -64,7 +64,7 @@
136+
137+ $(BINARY): $(OBJECTS) $(HEADERS)
138+       $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
139+-      strip $@
140++      $(STRIP) $@
141+ $(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
142+       $(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
143+ proxy: $(OBJECTS_proxy) $(HEADERS)