Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Waldvogel committed Apr 16, 2012
0 parents commit 82203b8
Show file tree
Hide file tree
Showing 103 changed files with 6,443 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This are some additional packages for OpenWRT
Most of them are particular useful for NAS devices

Have fun
Tobias


67 changes: 67 additions & 0 deletions acl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#
# Copyright (C) 2009-2011 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:=acl
PKG_VERSION:=2.2.51
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/acl/
PKG_BUILD_DEPENDS:=attr

include $(INCLUDE_DIR)/package.mk

EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib

define Package/libacl
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library for Manipulating POSIX Access Control Lists
URL:=http://download.savannah.gnu.org
DEPENDS:= +libattr
endef

define Package/libacl/description
Library for Manipulating Filesystem Extended aclibutes
endef

define Package/acl
SECTION:=utilities
CATEGORY:=Utilities
TITLE:=Commands for Manipulating POSIX Access Control Lists
URL:=http://download.savannah.gnu.org
DEPENDS:= +libacl
endef

define Package/acl/description
Commands for Manipulating Filesystem Extended aclibutes
endef

define Package/libacl/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libacl/.libs/libacl.so* $(1)/usr/lib
endef

define Package/acl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chacl/.libs/chacl $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/getfacl/.libs/getfacl $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/setfacl/.libs/setfacl $(1)/usr/bin
endef

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/acl
$(CP) $(PKG_BUILD_DIR)/include/acl/acl.h $(TOOLCHAIN_DIR)/include/sys
$(CP) $(PKG_BUILD_DIR)/include/acl/libacl.h $(1)/usr/include/acl
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libacl/.libs/libacl.{a,so*} $(1)/usr/lib/
endef

$(eval $(call BuildPackage,acl))
$(eval $(call BuildPackage,libacl))
49 changes: 49 additions & 0 deletions asterisk-chan-dongle/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# Copyright (C) 2011 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:=chan_dongle
PKG_VERSION:=1.1.r10
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://asterisk-chan-dongle.googlecode.com/files/
#PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/asterisk18-chan-dongle
SUBMENU:=Telephony
SECTION:=net
CATEGORY:=Network
TITLE:=dongle channel provider for asterisk
URL:=http://wiki.e1550.mobi/doku.php?id=installation#install_chan_dongle
endef

define Package/asterisk18-chan-dongle/description
dongle channel provider for asterisk.
endef

define Build/Configure
$(call Build/Configure/Default, \
--with-asterisk=$(STAGING_DIR)/usr/include/asterisk-1.8/include \
)
endef

define Build/Compile
$(SED) 's,-I/usr/include,,g' $(PKG_BUILD_DIR)/Makefile
$(MAKE) -C "$(PKG_BUILD_DIR)" all
endef

define Package/asterisk18-chan-dongle/install
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(CP) $(PKG_BUILD_DIR)/chan_dongle.so $(1)/usr/lib/asterisk/modules/
endef

$(eval $(call BuildPackage,asterisk18-chan-dongle))

89 changes: 89 additions & 0 deletions asterisk-chan-dongle/files/sccp.openwrt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
[general]
servername = Openwrt
keepalive = 60
debug = core
context = default
dateformat = D/M/Y
bindaddr = 192.168.1.1
port = 2000
disallow=all
allow=ulaw
allow=alaw
allow=gsm
firstdigittimeout = 16
digittimeout = 6
autoanswer_ring_time = 1
musicclass=default
language=en
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
protocolversion=17

hotline_enabled=yes
hotline_context=default
hotline_extension=111

[SEP001122334455]
type = device
description = Phone Number One
devicetype = 7940
button = line, 111
button = line, 113@01:shared
button = speeddial,Phone 2 Line 1, 112, 112@hint

[SEP00a1a2a3a4a5]
type = device
description = Phone Number Two
devicetype = 7960
button = line, 112
button = line, 113@01:shared
button = speeddial,Phone 1 Line 1, 111, 111@hint

[111]
id = 1000
type = line
pin = 1234
label = Phone 1 Line 1
description = Line 111
mailbox = 10111
cid_name = Phone 1 CID
cid_num = 111
accountcode=79111
callgroup=1
pickupgroup=1
context = default
incominglimit = 2
vmnum = 600
trnsfvm = 1000

[112]
id = 1001
type = line
pin = 1234
label = Phone 2 Line 1
description = Line 112
mailbox = 10112
cid_name = Phone 2 CID
cid_num = 112
accountcode=79112
callgroup=1
pickupgroup=1
context = default
incominglimit = 2
vmnum = 600
trnsfvm = 1000

[113]
id = 1002
type = line
pin = 1234
label = SharedLine 1
description = Line 113
mailbox = 10113
cid_name = Shared
cid_num = 113
accountcode=79113
incominglimit = 2
vmnum = 600
trnsfvm = 1000

65 changes: 65 additions & 0 deletions attr/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# Copyright (C) 2009-2011 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:=attr
PKG_VERSION:=2.4.46
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/attr/

include $(INCLUDE_DIR)/package.mk

EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib

define Package/libattr
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library for Manipulating Filesystem Extended Attributes
URL:=http://download.savannah.gnu.org
endef

define Package/libattr/description
Library for Manipulating Filesystem Extended Attributes
endef

define Package/attr
SECTION:=utilities
CATEGORY:=Utilities
TITLE:=Commands for Manipulating Filesystem Extended Attributes
URL:=http://download.savannah.gnu.org
DEPENDS:= +libattr
endef

define Package/attr/description
Commands for Manipulating Filesystem Extended Attributes
endef

define Package/libattr/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libattr/.libs/libattr.so* $(1)/usr/lib
endef

define Package/attr/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/attr/.libs/attr $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/getfattr/.libs/getfattr $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/setfattr/.libs/setfattr $(1)/usr/bin
endef

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/attr
$(CP) $(PKG_BUILD_DIR)/include/attr/xattr.h $(1)/usr/include/attr
$(CP) $(PKG_BUILD_DIR)/include/attr/error_context.h $(1)/usr/include/attr
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libattr/.libs/libattr.{a,so*} $(1)/usr/lib/
endef

$(eval $(call BuildPackage,attr))
$(eval $(call BuildPackage,libattr))
77 changes: 77 additions & 0 deletions attr/Makefile.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#
# Copyright (C) 2009-2011 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:=attr
PKG_VERSION:=2.4.46
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).src.tar.gz
PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/attr/

include $(INCLUDE_DIR)/package.mk

EXTRA_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib

define Package/libattr
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library for Manipulating Filesystem Extended Attributes
URL:=http://download.savannah.gnu.org
endef

define Package/libattr/description
Library for Manipulating Filesystem Extended Attributes
endef

define Package/attr
SECTION:=utilities
CATEGORY:=Utilities
TITLE:=Commands for Manipulating Filesystem Extended Attributes
URL:=http://download.savannah.gnu.org
DEPENDS:= +libattr
endef

define Package/attr/description
Commands for Manipulating Filesystem Extended Attributes
endef

define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)-dev" \
PKG_BIN_DIR="$(PKG_INSTALL_DIR)-dev/usr/bin" \
MAN_DEST="$(PKG_INSTALL_DIR)-dev/usr/man" \
PKG_DOC_DIR="$(PKG_INSTALL_DIR)-dev/usr/share/doc/attr" \
PKG_LOCALE_DIR="$(PKG_INSTALL_DIR)-dev/usr/share/locale" \
PKG_INC_DIR="$(PKG_INSTALL_DIR)-dev/usr/include" \
PKG_LIB_DIR="$(PKG_INSTALL_DIR)-dev/usr/lib" \
PKG_DEVLIB_DIR="$(PKG_INSTALL_DIR)-dev/usr/lib" \
install-dev
endef

define Package/libattr/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libattr.so* $(1)/usr/lib
endef

define Package/attr/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/attr $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getfattr $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setfattr $(1)/usr/bin
endef

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/attr
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libattr.{a,so*} $(1)/usr/lib
endef

$(eval $(call BuildPackage,attr))
$(eval $(call BuildPackage,libattr))
Loading

0 comments on commit 82203b8

Please sign in to comment.