Guest User

jlars

a guest
Apr 17th, 2011
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 9.08 KB | None | 0 0
  1. Index: feeds/packages/sound/shairport/patches/100-makefile.patch
  2. ===================================================================
  3. --- feeds/packages/sound/shairport/patches/100-makefile.patch   (revision 0)
  4. +++ feeds/packages/sound/shairport/patches/100-makefile.patch   (revision 0)
  5. @@ -0,0 +1,16 @@
  6. +--- a/Makefile
  7. ++++ b/Makefile
  8. +@@ -1,12 +1,10 @@
  9. + PKGFLAGS:=$(shell pkg-config --cflags --libs openssl ao)
  10. +-CFLAGS:=-O2 -Wall
  11. +-LDFLAGS:=-lm -lpthread
  12. + PAUFLAGS:=-lportaudio
  13. +
  14. + all: hairtunes
  15. +
  16. + hairtunes: hairtunes.c alac.c
  17. +-  $(CC) $(CFLAGS) hairtunes.c alac.c -o $@ $(PKGFLAGS) $(LDFLAGS)
  18. ++  $(CC) $(CFLAGS) -O2 hairtunes.c alac.c -o $@ $(PKGFLAGS) $(LDFLAGS) -lm -lpthread
  19. +
  20. + clean:
  21. +   -@rm -rf hairtunes
  22. Index: feeds/packages/sound/shairport/Makefile
  23. ===================================================================
  24. --- feeds/packages/sound/shairport/Makefile (revision 0)
  25. +++ feeds/packages/sound/shairport/Makefile (revision 0)
  26. @@ -0,0 +1,48 @@
  27. +#
  28. +# Copyright (C) 2011 OpenWrt.org
  29. +#
  30. +# This is free software, licensed under the GNU General Public License v2.
  31. +# See /LICENSE for more information.
  32. +#
  33. +
  34. +include $(TOPDIR)/rules.mk
  35. +
  36. +PKG_NAME:=shairport
  37. +PKG_VERSION:=0.05
  38. +PKG_RELEASE:=1
  39. +
  40. +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  41. +#PKG_SOURCE_URL:=http://192.168.0.50/repo/
  42. +#PKG_MD5SUM:=a4eef642c2cca11e93a0a69e79716e60
  43. +
  44. +PKG_BUILD_PARALLEL:=1
  45. +
  46. +include $(INCLUDE_DIR)/package.mk
  47. +
  48. +define Package/shairport
  49. +  SECTION:=sound
  50. +  CATEGORY:=Sound
  51. +  TITLE:=Server for RAOP protocol
  52. +  URL:=http://mafipulation.org/
  53. +  DEPENDS:= +libopenssl +libao +avahi-daemon +avahi-utils \
  54. +      +perl +perl-crypt-openssl-rsa +perl-http-message +perl-uri \
  55. +      +perlbase-autoloader +perlbase-config +perlbase-cwd \
  56. +      +perlbase-digest +perlbase-dynaloader +perlbase-errno \
  57. +      +perlbase-essential +perlbase-fcntl +perlbase-feature \
  58. +      +perlbase-file +perlbase-findbin +perlbase-io \
  59. +      +perlbase-ipc +perlbase-mime +perlbase-posix \
  60. +      +perlbase-selectsaver +perlbase-socket +perlbase-symbol \
  61. +      +perlbase-tie +perlbase-xsloader
  62. +endef
  63. +
  64. +define Package/shairport/description
  65. +  Shairport is server software that implements the RAOP protocol for
  66. +  playback of music streamed from a compatible remote client.
  67. +endef
  68. +
  69. +define Package/shairport/install
  70. +   $(INSTALL_DIR) $(1)/usr/bin
  71. +   $(INSTALL_BIN) $(PKG_BUILD_DIR)/{hairtunes,shairport.pl} $(1)/usr/bin/
  72. +endef
  73. +
  74. +$(eval $(call BuildPackage,shairport))
  75. Index: feeds/packages/libs/libao/Makefile
  76. ===================================================================
  77. --- feeds/packages/libs/libao/Makefile  (revision 26710)
  78. +++ feeds/packages/libs/libao/Makefile  (working copy)
  79. @@ -1,5 +1,5 @@
  80.  #
  81. -# Copyright (C) 2006 OpenWrt.org
  82. +# Copyright (C) 2006-2011 OpenWrt.org
  83.  #
  84.  # This is free software, licensed under the GNU General Public License v2.
  85.  # See /LICENSE for more information.
  86. @@ -8,12 +8,12 @@
  87.  include $(TOPDIR)/rules.mk
  88.  
  89.  PKG_NAME:=libao
  90. -PKG_VERSION:=0.8.8
  91. +PKG_VERSION:=1.1.0
  92.  PKG_RELEASE:=1
  93.  
  94.  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  95.  PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
  96. -PKG_MD5SUM:=b92cba3cbcf1ee9bc221118a85d23dcd
  97. +PKG_MD5SUM:=2b2508c29bc97e4dc218fa162cf883c8
  98.  
  99.  PKG_FIXUP:=libtool
  100.  PKG_INSTALL:=1
  101. @@ -48,6 +48,8 @@
  102.     $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
  103.     $(INSTALL_DIR) $(1)/usr/lib
  104.     $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
  105. +   $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
  106. +   $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/{*.a,*.so} $(1)/usr/lib/ao/plugins-4/
  107.     $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  108.     $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
  109.  endef
  110. @@ -55,6 +57,8 @@
  111.  define Package/libao/install
  112.     $(INSTALL_DIR) $(1)/usr/lib
  113.     $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
  114. +   $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
  115. +   $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/*.so $(1)/usr/lib/ao/plugins-4/
  116.  endef
  117.  
  118.  $(eval $(call BuildPackage,libao))
  119. Index: feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch
  120. ===================================================================
  121. --- feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch  (revision 0)
  122. +++ feeds/packages/lang/perl-crypt-openssl-rsa/patches/100-no_openssl_ripemd_fix.patch  (revision 0)
  123. @@ -0,0 +1,53 @@
  124. +--- a/RSA.xs
  125. ++++ b/RSA.xs
  126. +@@ -9,7 +9,9 @@
  127. + #include <openssl/objects.h>
  128. + #include <openssl/pem.h>
  129. + #include <openssl/rand.h>
  130. ++#ifndef OPENSSL_NO_RIPEMD
  131. + #include <openssl/ripemd.h>
  132. ++#endif
  133. + #include <openssl/rsa.h>
  134. + #include <openssl/sha.h>
  135. + #include <openssl/ssl.h>
  136. +@@ -89,9 +91,11 @@ int get_digest_length(int hash_method)
  137. +             return SHA512_DIGEST_LENGTH;
  138. +             break;
  139. + #endif
  140. ++#ifndef OPENSSL_NO_RIPEMD
  141. +         case NID_ripemd160:
  142. +             return RIPEMD160_DIGEST_LENGTH;
  143. +             break;
  144. ++#endif
  145. +         default:
  146. +             croak("Unknown digest hash code");
  147. +             break;
  148. +@@ -127,9 +131,11 @@ unsigned char* get_message_digest(SV* te
  149. +             return SHA512(text, text_length, NULL);
  150. +             break;
  151. + #endif
  152. ++#ifndef OPENSSL_NO_RIPEMD
  153. +         case NID_ripemd160:
  154. +             return RIPEMD160(text, text_length, NULL);
  155. +             break;
  156. ++#endif
  157. +         default:
  158. +             croak("Unknown digest hash code");
  159. +             break;
  160. +@@ -526,12 +532,16 @@ use_sha512_hash(p_rsa)
  161. +
  162. + #endif
  163. +
  164. ++#ifndef OPENSSL_NO_RIPEMD
  165. ++
  166. + void
  167. + use_ripemd160_hash(p_rsa)
  168. +     rsaData* p_rsa;
  169. +   CODE:
  170. +     p_rsa->hashMode =  NID_ripemd160;
  171. +
  172. ++#endif
  173. ++
  174. + void
  175. + use_no_padding(p_rsa)
  176. +     rsaData* p_rsa;
  177. Index: feeds/packages/lang/perl-crypt-openssl-rsa/Makefile
  178. ===================================================================
  179. --- feeds/packages/lang/perl-crypt-openssl-rsa/Makefile (revision 0)
  180. +++ feeds/packages/lang/perl-crypt-openssl-rsa/Makefile (revision 0)
  181. @@ -0,0 +1,39 @@
  182. +
  183. +include $(TOPDIR)/rules.mk
  184. +
  185. +PKG_NAME:=perl-crypt-openssl-rsa
  186. +PKG_VERSION:=0.26
  187. +PKG_RELEASE:=1
  188. +PKG_MD5SUM:=baf875f01ee39b88335b8f0962fe4bbc
  189. +
  190. +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/I/IR/IROBERTS
  191. +PKG_SOURCE:=Crypt-OpenSSL-RSA-$(PKG_VERSION).tar.gz
  192. +
  193. +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Crypt-OpenSSL-RSA-$(PKG_VERSION)
  194. +
  195. +include $(INCLUDE_DIR)/package.mk
  196. +include ../perl/perlmod.mk
  197. +
  198. +define Package/perl-crypt-openssl-rsa
  199. +SUBMENU:=Perl
  200. +SECTION:=lang
  201. +CATEGORY:=Languages
  202. +TITLE:=HTTP style message
  203. +URL:=http://search.cpan.org/dist/Crypt-OpenSSL-RSA/
  204. +DEPENDS:=perl +libopenssl
  205. +endef
  206. +
  207. +define Build/Configure
  208. +   $(call perlmod/Configure,,)
  209. +endef
  210. +
  211. +define Build/Compile
  212. +   $(call perlmod/Compile,,)
  213. +endef
  214. +
  215. +define Package/perl-crypt-openssl-rsa/install
  216. +$(call perlmod/Install,$(1),Crypt auto/Crypt)
  217. +endef
  218. +
  219. +
  220. +$(eval $(call BuildPackage,perl-crypt-openssl-rsa))
  221. Index: feeds/packages/lang/perl-getopt-long/Makefile
  222. ===================================================================
  223. --- feeds/packages/lang/perl-getopt-long/Makefile   (revision 0)
  224. +++ feeds/packages/lang/perl-getopt-long/Makefile   (revision 0)
  225. @@ -0,0 +1,39 @@
  226. +
  227. +include $(TOPDIR)/rules.mk
  228. +
  229. +PKG_NAME:=perl-getopt-long
  230. +PKG_VERSION:=2.38
  231. +PKG_RELEASE:=1
  232. +PKG_MD5SUM:=4d38c78300e79a7fde4700e88759c2b3
  233. +
  234. +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/J/JV/JV
  235. +PKG_SOURCE:=Getopt-Long-$(PKG_VERSION).tar.gz
  236. +
  237. +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Getopt-Long-$(PKG_VERSION)
  238. +
  239. +include $(INCLUDE_DIR)/package.mk
  240. +include ../perl/perlmod.mk
  241. +
  242. +define Package/perl-getopt-long
  243. +SUBMENU:=Perl
  244. +SECTION:=lang
  245. +CATEGORY:=Languages
  246. +TITLE:=HTTP style message
  247. +URL:=http://search.cpan.org/dist/Getopt-Long/
  248. +DEPENDS:=perl
  249. +endef
  250. +
  251. +define Build/Configure
  252. +   $(call perlmod/Configure,,)
  253. +endef
  254. +
  255. +define Build/Compile
  256. +   $(call perlmod/Compile,,)
  257. +endef
  258. +
  259. +define Package/perl-getopt-long/install
  260. +$(call perlmod/Install,$(1),newgetopt.pl Getopt)
  261. +endef
  262. +
  263. +
  264. +$(eval $(call BuildPackage,perl-getopt-long))
  265. Index: feeds/packages/lang/perl-http-message/Makefile
  266. ===================================================================
  267. --- feeds/packages/lang/perl-http-message/Makefile  (revision 0)
  268. +++ feeds/packages/lang/perl-http-message/Makefile  (revision 0)
  269. @@ -0,0 +1,39 @@
  270. +
  271. +include $(TOPDIR)/rules.mk
  272. +
  273. +PKG_NAME:=perl-http-message
  274. +PKG_VERSION:=6.02
  275. +PKG_RELEASE:=1
  276. +PKG_MD5SUM:=a6b28e44f7b5e5573362f042d522a456
  277. +
  278. +PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/G/GA/GAAS
  279. +PKG_SOURCE:=HTTP-Message-$(PKG_VERSION).tar.gz
  280. +
  281. +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTTP-Message-$(PKG_VERSION)
  282. +
  283. +include $(INCLUDE_DIR)/package.mk
  284. +include ../perl/perlmod.mk
  285. +
  286. +define Package/perl-http-message
  287. +SUBMENU:=Perl
  288. +SECTION:=lang
  289. +CATEGORY:=Languages
  290. +TITLE:=HTTP style message
  291. +URL:=http://search.cpan.org/dist/HTTP-Message/
  292. +DEPENDS:=perl
  293. +endef
  294. +
  295. +define Build/Configure
  296. +   $(call perlmod/Configure,,)
  297. +endef
  298. +
  299. +define Build/Compile
  300. +   $(call perlmod/Compile,,)
  301. +endef
  302. +
  303. +define Package/perl-http-message/install
  304. +$(call perlmod/Install,$(1),HTTP)
  305. +endef
  306. +
  307. +
  308. +$(eval $(call BuildPackage,perl-http-message))
Advertisement
Add Comment
Please, Sign In to add comment