Reorganization
authorfatbob313 <martin@fatbob.nu>
Wed, 6 Jan 2010 23:02:55 +0000 (23:02 +0000)
committerfatbob313 <martin@fatbob.nu>
Wed, 6 Jan 2010 23:02:55 +0000 (23:02 +0000)
Makefile [deleted file]
files/umurmur.conf [deleted file]
files/umurmur.init [deleted file]
openwrt/Makefile [new file with mode: 0644]
openwrt/files/umurmur.conf [new file with mode: 0644]
openwrt/files/umurmur.init [new file with mode: 0644]
src/Makefile

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index cb5fe9e..0000000
--- a/Makefile
+++ /dev/null
@@ -1,51 +0,0 @@
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=umurmur
-PKG_VERSION:=0.1.3
-PKG_RELEASE:=1
-
-PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
-
-include $(INCLUDE_DIR)/package.mk
-
-
-define Package/umurmur
-       SECTION:=net
-       CATEGORY:=Network
-       TITLE:=uMurmur
-       DEPENDS:=+libopenssl +libconfig
-       URL:=http://code.google.com/p/umurmur
-       MAINTAINER:=Martin Johansson <martin@fatbob.nu>
-endef
-
-define Package/umurmur/description
-       Minimalistic Mumble server daemon.
-endef
-
-TARGET_CFLAGS := \
-        -DWRT_TARGET \
-        $(TARGET_CFLAGS)
-
-define Build/Prepare
-       mkdir -p $(PKG_BUILD_DIR)
-       $(CP) ./src/* $(PKG_BUILD_DIR)/
-endef
-
-define Build/CompileTarget
-       CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"\
-       $(MAKE) -C $(PKG_BUILD_DIR)/umurmur.$(1)/umurmur \
-               all
-endef
-
-define Package/umurmur/install
-       $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/umurmurd $(1)/usr/bin/
-       $(INSTALL_DIR) $(1)/etc
-       $(INSTALL_CONF) ./files/umurmur.conf $(1)/etc/
-       $(INSTALL_DIR) $(1)/etc/init.d
-       $(INSTALL_BIN) ./files/umurmur.init $(1)/etc/init.d/umurmur
-       $(INSTALL_DIR) $(1)/etc/umurmur
-endef
-
-$(eval $(call BuildPackage,umurmur))
-
diff --git a/files/umurmur.conf b/files/umurmur.conf
deleted file mode 100644 (file)
index 09161fa..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-max_bandwidth = 5000;
-welcometext = "Welcome to uMurmur!";
-certificate = "/etc/umurmur/cert.crt";
-private_key = "/etc/umurmur/key.key";
-password = "";
-max_users = 10;
-
-# Root channel must always be defined first.
-# If a channel has a parent, the parent must be defined before the child channel(s).
-channels = ( {
-        name = "Root";
-        parent = "";
-        description = "The Root of all channels";
-        },
-        {
-        name = "Lobby";
-        parent = "Root";
-        description = "Lobby channel";
-        },
-        {
-        name = "Red team";
-        parent = "Lobby";
-        description = "The Red team channel";
-        },
-        {
-        name = "Blue team";
-        parent = "Lobby";
-        description = "The Blue team channel";
-        }
-);
-default_channel = "Lobby";
diff --git a/files/umurmur.init b/files/umurmur.init
deleted file mode 100644 (file)
index 617110a..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh /etc/rc.common
-# Copyright (C) 2006-2008 OpenWrt.org
-
-START=90
-
-PIDFILE="/var/run/umurmurd.pid"
-
-start() {
-        stop
-        /usr/bin/umurmurd -r -p $PIDFILE
-}
-
-stop() {
-        [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
-}
\ No newline at end of file
diff --git a/openwrt/Makefile b/openwrt/Makefile
new file mode 100644 (file)
index 0000000..cb5fe9e
--- /dev/null
@@ -0,0 +1,51 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=umurmur
+PKG_VERSION:=0.1.3
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+
+define Package/umurmur
+       SECTION:=net
+       CATEGORY:=Network
+       TITLE:=uMurmur
+       DEPENDS:=+libopenssl +libconfig
+       URL:=http://code.google.com/p/umurmur
+       MAINTAINER:=Martin Johansson <martin@fatbob.nu>
+endef
+
+define Package/umurmur/description
+       Minimalistic Mumble server daemon.
+endef
+
+TARGET_CFLAGS := \
+        -DWRT_TARGET \
+        $(TARGET_CFLAGS)
+
+define Build/Prepare
+       mkdir -p $(PKG_BUILD_DIR)
+       $(CP) ./src/* $(PKG_BUILD_DIR)/
+endef
+
+define Build/CompileTarget
+       CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)"\
+       $(MAKE) -C $(PKG_BUILD_DIR)/umurmur.$(1)/umurmur \
+               all
+endef
+
+define Package/umurmur/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/umurmurd $(1)/usr/bin/
+       $(INSTALL_DIR) $(1)/etc
+       $(INSTALL_CONF) ./files/umurmur.conf $(1)/etc/
+       $(INSTALL_DIR) $(1)/etc/init.d
+       $(INSTALL_BIN) ./files/umurmur.init $(1)/etc/init.d/umurmur
+       $(INSTALL_DIR) $(1)/etc/umurmur
+endef
+
+$(eval $(call BuildPackage,umurmur))
+
diff --git a/openwrt/files/umurmur.conf b/openwrt/files/umurmur.conf
new file mode 100644 (file)
index 0000000..09161fa
--- /dev/null
@@ -0,0 +1,31 @@
+max_bandwidth = 5000;
+welcometext = "Welcome to uMurmur!";
+certificate = "/etc/umurmur/cert.crt";
+private_key = "/etc/umurmur/key.key";
+password = "";
+max_users = 10;
+
+# Root channel must always be defined first.
+# If a channel has a parent, the parent must be defined before the child channel(s).
+channels = ( {
+        name = "Root";
+        parent = "";
+        description = "The Root of all channels";
+        },
+        {
+        name = "Lobby";
+        parent = "Root";
+        description = "Lobby channel";
+        },
+        {
+        name = "Red team";
+        parent = "Lobby";
+        description = "The Red team channel";
+        },
+        {
+        name = "Blue team";
+        parent = "Lobby";
+        description = "The Blue team channel";
+        }
+);
+default_channel = "Lobby";
diff --git a/openwrt/files/umurmur.init b/openwrt/files/umurmur.init
new file mode 100644 (file)
index 0000000..617110a
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2006-2008 OpenWrt.org
+
+START=90
+
+PIDFILE="/var/run/umurmurd.pid"
+
+start() {
+        stop
+        /usr/bin/umurmurd -r -p $PIDFILE
+}
+
+stop() {
+        [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
+}
\ No newline at end of file
index 9b959abc21fffab213381489937415c3a1e60b78..f3856d9b52a9cd2d9a4d41edbb8a25ad185a10a8 100644 (file)
@@ -22,6 +22,6 @@ all: umurmurd
 $(OBJS): Makefile
 
 depend.mak:
-       $(CC) -M $(SRCS) > depend.mak
+       $(CC) $(CFLAGS) -M $(SRCS) > depend.mak
 
 include depend.mak
\ No newline at end of file