Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: feeds/packages/sound/shairport/patches/100-makefile.patch
- ===================================================================
- --- feeds/packages/sound/shairport/patches/100-makefile.patch (revision 0)
- +++ feeds/packages/sound/shairport/patches/100-makefile.patch (revision 0)
- @@ -0,0 +1,16 @@
- +--- a/Makefile
- ++++ b/Makefile
- +@@ -1,12 +1,10 @@
- + PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao)
- +-CFLAGS:=-O2 -Wall
- +-LDFLAGS:=-lm -lpthread
- + PAUFLAGS:=-lportaudio
- +
- + all: hairtunes
- +
- + hairtunes: hairtunes.c alac.c
- +- $(CC) $(CFLAGS) hairtunes.c alac.c -o $@ $(PKGFLAGS) $(LDFLAGS)
- ++ $(CC) $(CFLAGS) -O2 hairtunes.c alac.c -o $@ $(PKGFLAGS) $(LDFLAGS) -lm -lpthread
- +
- + clean:
- + -@rm -rf hairtunes
- Index: feeds/packages/sound/shairport/Makefile
- ===================================================================
- --- feeds/packages/sound/shairport/Makefile (revision 0)
- +++ feeds/packages/sound/shairport/Makefile (revision 0)
- @@ -0,0 +1,48 @@
- +#
- +# 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:=shairport
- +PKG_VERSION:=0.05
- +PKG_RELEASE:=1
- +
- +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- +#PKG_SOURCE_URL:=http://192.168.0.50/repo/
- +#PKG_MD5SUM:=a4eef642c2cca11e93a0a69e79716e60
- +
- +PKG_BUILD_PARALLEL:=1
- +
- +include $(INCLUDE_DIR)/package.mk
- +
- +define Package/shairport
- + SECTION:=sound
- + CATEGORY:=Sound
- + TITLE:=Server for RAOP protocol
- + URL:=http://mafipulation.org/
- + DEPENDS:= +libopenssl +libao +avahi-daemon +avahi-utils \
- + +perl +perl-crypt-openssl-rsa +perl-http-message +perl-uri \
- + +perlbase-autoloader +perlbase-config +perlbase-cwd \
- + +perlbase-digest +perlbase-dynaloader +perlbase-errno \
- + +perlbase-essential +perlbase-fcntl +perlbase-feature \
- + +perlbase-file +perlbase-findbin +perlbase-io \
- + +perlbase-ipc +perlbase-mime +perlbase-posix \
- + +perlbase-selectsaver +perlbase-socket +perlbase-symbol \
- + +perlbase-tie +perlbase-xsloader
- +endef
- +
- +define Package/shairport/description
- + Shairport is server software that implements the RAOP protocol for
- + playback of music streamed from a compatible remote client.
- +endef
- +
- +define Package/shairport/install
- + $(INSTALL_DIR) $(1)/usr/bin
- + $(INSTALL_BIN) $(PKG_BUILD_DIR)/{hairtunes,shairport.pl} $(1)/usr/bin/
- +endef
- +
- +$(eval $(call BuildPackage,shairport))
- Index: feeds/packages/libs/libao/Makefile
- ===================================================================
- --- feeds/packages/libs/libao/Makefile (revision 26710)
- +++ feeds/packages/libs/libao/Makefile (working copy)
- @@ -1,5 +1,5 @@
- #
- -# Copyright (C) 2006 OpenWrt.org
- +# Copyright (C) 2006-2011 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- @@ -8,12 +8,12 @@
- include $(TOPDIR)/rules.mk
- PKG_NAME:=libao
- -PKG_VERSION:=0.8.8
- +PKG_VERSION:=1.1.0
- PKG_RELEASE:=1
- PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
- -PKG_MD5SUM:=b92cba3cbcf1ee9bc221118a85d23dcd
- +PKG_MD5SUM:=2b2508c29bc97e4dc218fa162cf883c8
- PKG_FIXUP:=libtool
- PKG_INSTALL:=1
- @@ -48,6 +48,8 @@
- $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
- + $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
- + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/{*.a,*.so} $(1)/usr/lib/ao/plugins-4/
- $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
- endef
- @@ -55,6 +57,8 @@
- define Package/libao/install
- $(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
- + $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
- + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/*.so $(1)/usr/lib/ao/plugins-4/
- endef
- $(eval $(call BuildPackage,libao))
- Index: feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch
- ===================================================================
- --- feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch (revision 0)
- +++ feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch (revision 0)
- @@ -0,0 +1,53 @@
- +--- a/RSA.xs
- ++++ b/RSA.xs
- +@@ -9,7 +9,9 @@
- + #include <openssl/objects.h>
- + #include <openssl/pem.h>
- + #include <openssl/rand.h>
- ++#ifndef OPENSSL_NO_RIPEMD
- + #include <openssl/ripemd.h>
- ++#endif
- + #include <openssl/rsa.h>
- + #include <openssl/sha.h>
- + #include <openssl/ssl.h>
- +@@ -89,9 +91,11 @@ int get_digest_length(int hash_method)
- + return SHA512_DIGEST_LENGTH;
- + break;
- + #endif
- ++#ifndef OPENSSL_NO_RIPEMD
- + case NID_ripemd160:
- + return RIPEMD160_DIGEST_LENGTH;
- + break;
- ++#endif
- + default:
- + croak("Unknown digest hash code");
- + break;
- +@@ -127,9 +131,11 @@ unsigned char* get_message_digest(SV* te
- + return SHA512(text, text_length, NULL);
- + break;
- + #endif
- ++#ifndef OPENSSL_NO_RIPEMD
- + case NID_ripemd160:
- + return RIPEMD160(text, text_length, NULL);
- + break;
- ++#endif
- + default:
- + croak("Unknown digest hash code");
- + break;
- +@@ -526,12 +532,16 @@ use_sha512_hash(p_rsa)
- +
- + #endif
- +
- ++#ifndef OPENSSL_NO_RIPEMD
- ++
- + void
- + use_ripemd160_hash(p_rsa)
- + rsaData* p_rsa;
- + CODE:
- + p_rsa->hashMode = NID_ripemd160;
- +
- ++#endif
- ++
- + void
- + use_no_padding(p_rsa)
- + rsaData* p_rsa;
- Index: feeds/packages/lang/perl-crypt-openssl-rsa/Makefile
- ===================================================================
- --- feeds/packages/lang/perl-crypt-openssl-rsa/Makefile (revision 0)
- +++ feeds/packages/lang/perl-crypt-openssl-rsa/Makefile (revision 0)
- @@ -0,0 +1,39 @@
- +
- +include $(TOPDIR)/rules.mk
- +
- +PKG_NAME:=perl-crypt-openssl-rsa
- +PKG_VERSION:=0.26
- +PKG_RELEASE:=1
- +PKG_MD5SUM:=baf875f01ee39b88335b8f0962fe4bbc
- +
- +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS
- +PKG_SOURCE:=Crypt-OpenSSL-RSA-$(PKG_VERSION).tar.gz
- +
- +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Crypt-OpenSSL-RSA-$(PKG_VERSION)
- +
- +include $(INCLUDE_DIR)/package.mk
- +include ../perl/perlmod.mk
- +
- +define Package/perl-crypt-openssl-rsa
- +SUBMENU:=Perl
- +SECTION:=lang
- +CATEGORY:=Languages
- +TITLE:=HTTP style message
- +URL:=http://search.cpan.org/dist/Crypt-OpenSSL-RSA/
- +DEPENDS:=perl +libopenssl
- +endef
- +
- +define Build/Configure
- + $(call perlmod/Configure,,)
- +endef
- +
- +define Build/Compile
- + $(call perlmod/Compile,,)
- +endef
- +
- +define Package/perl-crypt-openssl-rsa/install
- +$(call perlmod/Install,$(1),Crypt auto/Crypt)
- +endef
- +
- +
- +$(eval $(call BuildPackage,perl-crypt-openssl-rsa))
- Index: feeds/packages/lang/perl-getopt-long/Makefile
- ===================================================================
- --- feeds/packages/lang/perl-getopt-long/Makefile (revision 0)
- +++ feeds/packages/lang/perl-getopt-long/Makefile (revision 0)
- @@ -0,0 +1,39 @@
- +
- +include $(TOPDIR)/rules.mk
- +
- +PKG_NAME:=perl-getopt-long
- +PKG_VERSION:=2.38
- +PKG_RELEASE:=1
- +PKG_MD5SUM:=4d38c78300e79a7fde4700e88759c2b3
- +
- +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/J/JV/JV
- +PKG_SOURCE:=Getopt-Long-$(PKG_VERSION).tar.gz
- +
- +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Getopt-Long-$(PKG_VERSION)
- +
- +include $(INCLUDE_DIR)/package.mk
- +include ../perl/perlmod.mk
- +
- +define Package/perl-getopt-long
- +SUBMENU:=Perl
- +SECTION:=lang
- +CATEGORY:=Languages
- +TITLE:=HTTP style message
- +URL:=http://search.cpan.org/dist/Getopt-Long/
- +DEPENDS:=perl
- +endef
- +
- +define Build/Configure
- + $(call perlmod/Configure,,)
- +endef
- +
- +define Build/Compile
- + $(call perlmod/Compile,,)
- +endef
- +
- +define Package/perl-getopt-long/install
- +$(call perlmod/Install,$(1),newgetopt.pl Getopt)
- +endef
- +
- +
- +$(eval $(call BuildPackage,perl-getopt-long))
- Index: feeds/packages/lang/perl-http-message/Makefile
- ===================================================================
- --- feeds/packages/lang/perl-http-message/Makefile (revision 0)
- +++ feeds/packages/lang/perl-http-message/Makefile (revision 0)
- @@ -0,0 +1,39 @@
- +
- +include $(TOPDIR)/rules.mk
- +
- +PKG_NAME:=perl-http-message
- +PKG_VERSION:=6.02
- +PKG_RELEASE:=1
- +PKG_MD5SUM:=a6b28e44f7b5e5573362f042d522a456
- +
- +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/G/GA/GAAS
- +PKG_SOURCE:=HTTP-Message-$(PKG_VERSION).tar.gz
- +
- +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTTP-Message-$(PKG_VERSION)
- +
- +include $(INCLUDE_DIR)/package.mk
- +include ../perl/perlmod.mk
- +
- +define Package/perl-http-message
- +SUBMENU:=Perl
- +SECTION:=lang
- +CATEGORY:=Languages
- +TITLE:=HTTP style message
- +URL:=http://search.cpan.org/dist/HTTP-Message/
- +DEPENDS:=perl
- +endef
- +
- +define Build/Configure
- + $(call perlmod/Configure,,)
- +endef
- +
- +define Build/Compile
- + $(call perlmod/Compile,,)
- +endef
- +
- +define Package/perl-http-message/install
- +$(call perlmod/Install,$(1),HTTP)
- +endef
- +
- +
- +$(eval $(call BuildPackage,perl-http-message))
Advertisement
Add Comment
Please, Sign In to add comment