From 72b33701aeb47b3316f1589598dea4d46015cc60 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Wed, 16 Jul 2014 18:01:32 -0400 Subject: [PATCH 1/4] Copy dmapd package from old repository Signed-off-by: W. Michael Petullo --- net/dmapd/Makefile | 61 ++++++++++++++++++++++++++ net/dmapd/files/dmapd.init | 30 +++++++++++++ net/dmapd/patches/001-dmapd_conf.patch | 11 +++++ 3 files changed, 102 insertions(+) create mode 100644 net/dmapd/Makefile create mode 100644 net/dmapd/files/dmapd.init create mode 100644 net/dmapd/patches/001-dmapd_conf.patch diff --git a/net/dmapd/Makefile b/net/dmapd/Makefile new file mode 100644 index 000000000..5dd12dfe8 --- /dev/null +++ b/net/dmapd/Makefile @@ -0,0 +1,61 @@ +# +# Copyright (C) 2009-2012 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:=dmapd +PKG_VERSION:=0.0.50 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd +PKG_MD5SUM:=2e04d7fb8437f9e7bd370dc3af450aae + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=2 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/dmapd + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libdmapsharing +libdb47 +vips +GraphicsMagick + TITLE:= dmapd + URL:=http://www.flyn.org/projects/dmapd/ + MAINTAINER:=W. Michael Petullo +endef + +define Package/dmapd/decription + Dmapd is a DMAP server +endef + +define Package/dmapd/conffiles +/etc/dmapd.conf +endef + +TARGET_LDFLAGS+=\ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + +define Package/dmapd/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_CONF) $(PKG_BUILD_DIR)/distro/dmapd.conf $(1)/etc/ + $(INSTALL_BIN) ./files/dmapd.init $(1)/etc/init.d/dmapd + $(INSTALL_DIR) $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules + $(CP) \ + $(PKG_INSTALL_DIR)/usr/sbin/dmapd \ + $(1)/usr/sbin/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libdmapd.so* \ + $(1)/usr/lib/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/dmapd/$(PKG_VERSION)/modules/*.so \ + $(1)/usr/lib/dmapd/$(PKG_VERSION)/modules/ +endef + +$(eval $(call BuildPackage,dmapd)) diff --git a/net/dmapd/files/dmapd.init b/net/dmapd/files/dmapd.init new file mode 100644 index 000000000..e76b0ef3e --- /dev/null +++ b/net/dmapd/files/dmapd.init @@ -0,0 +1,30 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2009-2012 OpenWrt.org + +START=60 + +start() { + user_exists dmapd 56 || user_add dmapd 56 + group_exists dmapd 56 || group_add dmapd 56 + [ -d /var/run/dmapd ] || { + mkdir -m 0755 -p /var/run/dmapd + chown dmapd:dmapd /var/run/dmapd + } + [ -d /var/db/dmapd/DAAP ] || { + mkdir -m 0755 -p /var/db/dmapd/DAAP + chown dmapd:dmapd /var/db/dmapd/DAAP + } + [ -d /var/db/dmapd/DPAP ] || { + mkdir -m 0755 -p /var/db/dmapd/DPAP + chown dmapd:dmapd /var/db/dmapd/DPAP + } + mkdir -m 0755 -p /var/lock/subsys + mkdir -m 0755 -p /var/media/music + mkdir -m 0755 -p /var/media/pictures + + service_start /usr/sbin/dmapd -m /var/media/music -p /var/media/pictures --vips-disc-threshold 64k +} + +stop() { + service_stop /usr/sbin/dmapd +} diff --git a/net/dmapd/patches/001-dmapd_conf.patch b/net/dmapd/patches/001-dmapd_conf.patch new file mode 100644 index 000000000..9c1e60a33 --- /dev/null +++ b/net/dmapd/patches/001-dmapd_conf.patch @@ -0,0 +1,11 @@ +--- a/distro/dmapd.conf ++++ b/distro/dmapd.conf +@@ -3,7 +3,7 @@ + Database-Dir=/var/db/dmapd + + # Name that will be used to identify share: +-Share-Name=dmapd ++Share-Name=OpenWrt + + # User that dmapd will run as, current user if undefined: + User=dmapd From 158daf25d407010a9d18281823dc0b8c6b640c94 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Sun, 10 Aug 2014 15:31:24 -0400 Subject: [PATCH 2/4] dmapd: update to 0.0.70 Signed-off-by: W. Michael Petullo --- net/dmapd/Makefile | 12 ++++++++---- net/dmapd/files/dmapd.init | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/net/dmapd/Makefile b/net/dmapd/Makefile index 5dd12dfe8..ca53f6bce 100644 --- a/net/dmapd/Makefile +++ b/net/dmapd/Makefile @@ -8,12 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dmapd -PKG_VERSION:=0.0.50 +PKG_VERSION:=0.0.70 PKG_RELEASE:=1 +PKG_MAINTAINER:=W. Michael Petullo + +PKG_LICENSE:=GPLv2 +PKG_LICENSE_FILE:=COPYING + PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd -PKG_MD5SUM:=2e04d7fb8437f9e7bd370dc3af450aae +PKG_MD5SUM:=f503bf95f79b5c1f9418cccf26203952 PKG_FIXUP:=autoreconf PKG_INSTALL:=2 @@ -24,10 +29,9 @@ include $(INCLUDE_DIR)/nls.mk define Package/dmapd SECTION:=net CATEGORY:=Network - DEPENDS:=+libdmapsharing +libdb47 +vips +GraphicsMagick + DEPENDS:=+libdmapsharing +libdb47 +vips TITLE:= dmapd URL:=http://www.flyn.org/projects/dmapd/ - MAINTAINER:=W. Michael Petullo endef define Package/dmapd/decription diff --git a/net/dmapd/files/dmapd.init b/net/dmapd/files/dmapd.init index e76b0ef3e..2d9e9aadf 100644 --- a/net/dmapd/files/dmapd.init +++ b/net/dmapd/files/dmapd.init @@ -22,7 +22,7 @@ start() { mkdir -m 0755 -p /var/media/music mkdir -m 0755 -p /var/media/pictures - service_start /usr/sbin/dmapd -m /var/media/music -p /var/media/pictures --vips-disc-threshold 64k + service_start /usr/sbin/dmapd -u dmapd -g dmapd -m /var/media/music -p /var/media/pictures --vips-disc-threshold 64k } stop() { From 4ca8a2dbc26ac31a5f656326a69144098a859038 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Wed, 16 Jul 2014 00:13:16 +0200 Subject: [PATCH 3/4] nspr: add package Signed-off-by: Luka Perkov --- libs/nspr/Makefile | 59 +++++++++++++++++++++++++++++ libs/nspr/patches/001-compile.patch | 26 +++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 libs/nspr/Makefile create mode 100644 libs/nspr/patches/001-compile.patch diff --git a/libs/nspr/Makefile b/libs/nspr/Makefile new file mode 100644 index 000000000..36bdf419d --- /dev/null +++ b/libs/nspr/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 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:=nspr +PKG_VERSION:=3.16 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/nss-$(PKG_VERSION) +PKG_SOURCE:=nss-$(PKG_VERSION)-with-nspr-4.10.4.tar.gz +PKG_SOURCE_URL:=ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_16_RTM/src/ +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_PATH=nspr +MAKE_PATH=nspr + +define Package/nspr + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Netscape Portable Runtime (NSPR) + URL:=https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR + DEPENDS:=+libpthread +librt + MAINTAINER:=Luka Perkov +endef + +define Package/nspr/description + Netscape Portable Runtime (NSPR) provides a platform-neutral API for system + level and libc-like functions. The API is used in the Mozilla clients, many of + Red Hat's and Sun's server applications, and other software offerings. +endef + +CONFIGURE_ARGS += \ + --with-arch=toolchain-default \ + --with-fpu=toolchain-default \ + --with-float-abi=toolchain-default \ + --with-soft-float=toolchain-default + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so} $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nspr.pc $(1)/usr/lib/pkgconfig/ +endef + +define Package/nspr/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/*so $(1)/usr/lib +endef + +$(eval $(call BuildPackage,nspr)) diff --git a/libs/nspr/patches/001-compile.patch b/libs/nspr/patches/001-compile.patch new file mode 100644 index 000000000..63b697e7a --- /dev/null +++ b/libs/nspr/patches/001-compile.patch @@ -0,0 +1,26 @@ +--- a/nspr/config/Makefile.in ++++ b/nspr/config/Makefile.in +@@ -30,7 +30,6 @@ CSRCS = now.c + + # This version hasn't been ported for us; the one in mozilla/config has + ifneq ($(OS_ARCH),OS2) +-CSRCS += nsinstall.c + + PLSRCS = nfspwd.pl + endif +@@ -84,7 +83,6 @@ else + ifeq (,$(filter-out SYMBIAN WINCE,$(OS_ARCH))) + TARGETS = $(PROGS) + else +-PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX) + TARGETS = $(PROGS) $(PLSRCS:.pl=) + endif + endif +@@ -114,6 +112,7 @@ endif + $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) + @$(MAKE_OBJDIR) + $(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@ ++ gcc nsinstall.c -o nsinstall + + install:: nspr.m4 + $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal From ff36d023e8a4bf0354675c3a7304e50c190439f4 Mon Sep 17 00:00:00 2001 From: Marcel Denia Date: Mon, 11 Aug 2014 01:14:19 +0200 Subject: [PATCH 4/4] perl-compress-bzip2: Update to 2.18 Signed-off-by: Marcel Denia --- lang/perl-compress-bzip2/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/perl-compress-bzip2/Makefile b/lang/perl-compress-bzip2/Makefile index b31458598..25a624b23 100644 --- a/lang/perl-compress-bzip2/Makefile +++ b/lang/perl-compress-bzip2/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=perl-compress-bzip2 -PKG_VERSION:=2.17 +PKG_VERSION:=2.18 PKG_RELEASE:=1 PKG_SOURCE_URL:=http://www.cpan.org/authors/id/R/RU/RURBAN/ PKG_SOURCE:=Compress-Bzip2-$(PKG_VERSION).tar.gz -PKG_MD5SUM:=d8b809f6efe3edb33f81d608c932b2ef +PKG_MD5SUM:=c4a1995df9443cb97c28593cbbb23304 PKG_LICENSE:=GPLv1+ ARTISTIC PKG_MAINTAINER:=Marcel Denia