--- /dev/null
+#
+# Copyright (C) 2006-2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=opentracker
+PKG_VERSION:=20130804
+PKG_RELEASE:=1
+PKG_REV:=954f5029dfa17734dc408336ef710c192268e8a4
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=git://erdgeist.org/opentracker
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=$(PKG_REV)
+PKG_SOURCE_PROTO:=git
+PKG_BUILD_DEPENDS:=libowfat
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/opentracker
+ SUBMENU:=BitTorrent
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=opentracker
+ URL:=http://erdgeist.org/arts/software/opentracker/
+ DEPENDS:=+zlib +libpthread
+endef
+
+define Package/opentracker/description
+ opentracker - An open and free bittorrent tracker
+
+ opentracker is an open and free bittorrent tracker project.
+ It aims for minimal resource usage and is intended to run at your wlan router.
+ Currently it is deployed as an open and free tracker instance.
+ Read our free and open tracker blog and announce your torrents there
+ (but do not hesitate to setup your own free trackers!).
+endef
+
+MAKE_FLAGS += PREFIX="$(STAGING_DIR)/usr"
+
+define Package/opentracker/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/opentracker $(1)/usr/bin
+ $(INSTALL_DIR) $(1)/etc
+ $(INSTALL_CONF) $(PKG_BUILD_DIR)/opentracker.conf.sample $(1)/etc/opentracker.conf
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) ./files/opentracker.init $(1)/etc/init.d/opentracker
+endef
+
+$(eval $(call BuildPackage,opentracker))
--- /dev/null
+Index: opentracker-20130804/Makefile
+===================================================================
+--- opentracker-20130804.orig/Makefile
++++ opentracker-20130804/Makefile
+@@ -9,13 +9,13 @@ CC?=gcc
+
+ # BSD flavour
+ # PREFIX?=/usr/local
+-# LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat
+-# LIBOWFAT_LIBRARY=$(PREFIX)/lib
++LIBOWFAT_HEADERS=$(PREFIX)/include/libowfat
++LIBOWFAT_LIBRARY=$(PREFIX)/lib
+
+ # Debug flavour
+-PREFIX?=..
+-LIBOWFAT_HEADERS=$(PREFIX)/libowfat
+-LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
++# PREFIX?=..
++# LIBOWFAT_HEADERS=$(PREFIX)/libowfat
++# LIBOWFAT_LIBRARY=$(PREFIX)/libowfat
+
+ BINDIR?=$(PREFIX)/bin
+
+@@ -66,7 +66,7 @@ CFLAGS_debug = $(CFLAGS) $(OPTS_debug) $
+
+ $(BINARY): $(OBJECTS) $(HEADERS)
+ $(CC) -o $@ $(OBJECTS) $(LDFLAGS)
+- strip $@
++ $(STRIP) $@
+ $(BINARY).debug: $(OBJECTS_debug) $(HEADERS)
+ $(CC) -o $@ $(OBJECTS_debug) $(LDFLAGS)
+ proxy: $(OBJECTS_proxy) $(HEADERS)