[packages] net/freeswitch: Use /usr/share/freeswitch as prefix; this means freeswitch files not in bin, lib, or include will be stored under /usr/share/freeswitch.
Modify the configuration so that recordings are stored on /var/lib/freeswitch/recordings by default (this is a tmpfs so should be change if persistance is needed). Allow the scripts and htdocs to have their directories set individually instead of requirings them to be under /usr/share/freeswitch. git-svn-id: svn://svn.openwrt.org/openwrt/packages@22783 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0e83f0b891
commit
b3d326bbee
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=freeswitch
|
PKG_NAME:=freeswitch
|
||||||
PKG_VERSION:=1.0.6
|
PKG_VERSION:=1.0.6
|
||||||
PKG_RELEASE:=10
|
PKG_RELEASE:=11
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
@ -304,7 +304,7 @@ FS_TARGET_CXXFLAGS:= ${TARGET_CXXFLAGS} -DLUA_USE_LINUX $(FPIC) -Wno-format
|
|||||||
FS_TARGET_CPPFLAGS:= -I. -I./lua ${TARGET_CPPFLAGS}
|
FS_TARGET_CPPFLAGS:= -I. -I./lua ${TARGET_CPPFLAGS}
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--prefix="/usr/freeswitch" \
|
--prefix="/usr/share/freeswitch" \
|
||||||
--bindir="/usr/bin" \
|
--bindir="/usr/bin" \
|
||||||
--libdir="/usr/lib" \
|
--libdir="/usr/lib" \
|
||||||
--sysconfdir="/etc/freeswitch" \
|
--sysconfdir="/etc/freeswitch" \
|
||||||
@ -385,7 +385,7 @@ endef
|
|||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include/freeswitch
|
$(INSTALL_DIR) $(1)/usr/include/freeswitch
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/include/* $(1)/usr/include/freeswitch/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/include/* $(1)/usr/include/freeswitch/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreeswitch.{a,so*} $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
@ -434,13 +434,13 @@ define Package/freeswitch-config-minimal/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/freeswitch-sounds-en/install
|
define Package/freeswitch-sounds-en/install
|
||||||
$(INSTALL_DIR) $(1)/usr/freeswitch/sounds
|
$(INSTALL_DIR) $(1)/usr/share/freeswitch/sounds
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/en $(1)/usr/freeswitch/sounds/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/sounds/en $(1)/usr/share/freeswitch/sounds/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/freeswitch-sounds-moh/install
|
define Package/freeswitch-sounds-moh/install
|
||||||
$(INSTALL_DIR) $(1)/usr/freeswitch/sounds
|
$(INSTALL_DIR) $(1)/usr/share/freeswitch/sounds
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/freeswitch/sounds/music $(1)/usr/freeswitch/sounds/
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/freeswitch/sounds/music $(1)/usr/share/freeswitch/sounds/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/freeswitch-tools/install
|
define Package/freeswitch-tools/install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user