Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved from riff-raff.

  • Loading branch information...
commit 7f43b051f6ce75bd1c7781500ecff34085264d0f 0 parents
@sofar sofar authored
Showing with 5,275 additions and 0 deletions.
  1. +33 −0 archive/bzip2/BUILD
  2. +1 −0  archive/bzip2/CONFIGURE
  3. +17 −0 archive/bzip2/DETAILS
  4. +13 −0 archive/cpio/BUILD
  5. +1 −0  archive/cpio/DEPENDS
  6. +16 −0 archive/cpio/DETAILS
  7. +1 −0  archive/cpio/POST_REMOVE
  8. +12 −0 archive/gzip/BUILD
  9. +18 −0 archive/gzip/DETAILS
  10. +1 −0  archive/gzip/POST_REMOVE
  11. +1 −0  archive/pbzip2/DEPENDS
  12. +17 −0 archive/pbzip2/DETAILS
  13. +14 −0 archive/rpmunpack/BUILD
  14. +2 −0  archive/rpmunpack/DEPENDS
  15. +20 −0 archive/rpmunpack/DETAILS
  16. +34 −0 archive/rpmunpack/plugin.d/unpack-rpm.plugin
  17. +16 −0 archive/tar/BUILD
  18. +9 −0 archive/tar/DEPENDS
  19. +29 −0 archive/tar/DETAILS
  20. +1 −0  archive/tar/POST_REMOVE
  21. +15 −0 archive/unzip/BUILD
  22. +15 −0 archive/unzip/BUILD.x86_64
  23. +16 −0 archive/unzip/DETAILS
  24. +33 −0 archive/unzip/plugin.d/unpack-zip.plugin
  25. +9 −0 archive/xz/BUILD
  26. +1 −0  archive/xz/DEPENDS
  27. +15 −0 archive/xz/DETAILS
  28. +70 −0 archive/xz/plugin.d/unpack-xz.plugin
  29. +14 −0 archive/zip/BUILD
  30. +16 −0 archive/zip/DETAILS
  31. +20 −0 archive/zlib/BUILD
  32. +20 −0 archive/zlib/BUILD.x86_64
  33. +1 −0  archive/zlib/DEPENDS
  34. +17 −0 archive/zlib/DETAILS
  35. +3 −0  chat/irssi/CONFIGURE
  36. +5 −0 chat/irssi/DEPENDS
  37. +18 −0 chat/irssi/DETAILS
  38. +9 −0 compilers/bin86/BUILD
  39. +11 −0 compilers/bin86/BUILD.x86_64
  40. +17 −0 compilers/bin86/DETAILS
  41. +20 −0 compilers/bin86/DETAILS.x86_64
  42. +48 −0 compilers/gcc/BUILD
  43. +50 −0 compilers/gcc/BUILD.x86_64
  44. +32 −0 compilers/gcc/CONFIGURE
  45. +5 −0 compilers/gcc/DEPENDS
  46. +21 −0 compilers/gcc/DETAILS
  47. +4 −0 compilers/gcc/POST_REMOVE
  48. +633 −0 compilers/gcc/plugin.d/optimize-gcc_4_6.plugin
  49. +19 −0 compilers/nasm/DETAILS
  50. +18 −0 compilers/yasm/DETAILS
  51. +31 −0 crypto/openssh/BUILD
  52. +1 −0  crypto/openssh/CONFIGURE
  53. +19 −0 crypto/openssh/DEPENDS
  54. +26 −0 crypto/openssh/DETAILS
  55. +38 −0 crypto/openssh/Makefile
  56. +1 −0  crypto/openssh/POST_INSTALL
  57. +11 −0 crypto/openssh/init.d/sshd
  58. +8 −0 crypto/openssh/pam.d/sshd
  59. +13 −0 crypto/openssh/profile.d/ssh-completion.rc
  60. +2 −0  crypto/openssh/services
  61. +13 −0 crypto/openssh/systemd.d/sshd-keys.service
  62. +14 −0 crypto/openssh/systemd.d/sshd.service
  63. +10 −0 crypto/openssh/systemd.d/sshd.socket
  64. +11 −0 crypto/openssh/systemd.d/sshd@.service
  65. +25 −0 crypto/openssl/BUILD
  66. +4 −0 crypto/openssl/DEPENDS
  67. +32 −0 crypto/openssl/DETAILS
  68. +13 −0 crypto/openssl/POST_INSTALL
  69. +2 −0  devel/autoconf/DEPENDS
  70. +22 −0 devel/autoconf/DETAILS
  71. +9 −0 devel/automake/BUILD
  72. +1 −0  devel/automake/DEPENDS
  73. +26 −0 devel/automake/DETAILS
  74. +16 −0 devel/binutils/BUILD
  75. +22 −0 devel/binutils/BUILD.sparc64
  76. +16 −0 devel/binutils/BUILD.x86_64
  77. +2 −0  devel/binutils/DEPENDS
  78. +28 −0 devel/binutils/DETAILS
  79. +7 −0 devel/binutils/POST_REMOVE
  80. +99 −0 devel/binutils/plugin.d/optimize-gnu_ld.plugin
  81. +10 −0 devel/bison/BUILD
  82. +1 −0  devel/bison/DEPENDS
  83. +20 −0 devel/bison/DETAILS
  84. +1 −0  devel/bison/POST_REMOVE
  85. +7 −0 devel/check/BUILD
  86. +1 −0  devel/check/DEPENDS
  87. +18 −0 devel/check/DETAILS
  88. +8 −0 devel/dbus/30-dbus
  89. +30 −0 devel/dbus/BUILD
  90. +4 −0 devel/dbus/DEPENDS
  91. +18 −0 devel/dbus/DETAILS
  92. +8 −0 devel/dbus/POST_INSTALL
  93. +8 −0 devel/dbus/dbus/30-dbus
  94. +30 −0 devel/dbus/dbus/BUILD
  95. +4 −0 devel/dbus/dbus/DEPENDS
  96. +18 −0 devel/dbus/dbus/DETAILS
  97. +8 −0 devel/dbus/dbus/POST_INSTALL
  98. +34 −0 devel/dbus/dbus/init.d/messagebus
  99. +34 −0 devel/dbus/init.d/messagebus
  100. +6 −0 devel/diffutils/BUILD
  101. +29 −0 devel/diffutils/DETAILS
  102. +1 −0  devel/diffutils/POST_REMOVE
  103. +11 −0 devel/flex/BUILD
  104. +4 −0 devel/flex/DEPENDS
  105. +18 −0 devel/flex/DETAILS
  106. +12 −0 devel/m4/BUILD
  107. +23 −0 devel/m4/DETAILS
  108. +1 −0  devel/m4/POST_REMOVE
  109. +8 −0 devel/make/BUILD
  110. +26 −0 devel/make/DETAILS
  111. +1 −0  devel/make/POST_REMOVE
  112. +70 −0 devel/make/plugin.d/optimize-gnu_make.plugin
  113. +18 −0 devel/make/profile.d/make-completion.rc
  114. +4 −0 devel/patch/BUILD
  115. +18 −0 devel/patch/DETAILS
  116. +8 −0 devel/pkgconfig/BUILD
  117. +2 −0  devel/pkgconfig/DEPENDS
  118. +22 −0 devel/pkgconfig/DETAILS
  119. +2 −0  devel/pkgconfig/profile.d/pkgconfig.rc
  120. +18 −0 doc-tools/groff/BUILD
  121. +4 −0 doc-tools/groff/DEPENDS
  122. +21 −0 doc-tools/groff/DETAILS
  123. +1 −0  doc-tools/intltool/DEPENDS
  124. +15 −0 doc-tools/intltool/DETAILS
  125. +1 −0  doc-tools/intltool/POST_INSTALL
  126. +16 −0 doc-tools/man/BUILD
  127. +1 −0  doc-tools/man/CONFIGURE
  128. +3 −0  doc-tools/man/DEPENDS
  129. +26 −0 doc-tools/man/DETAILS
  130. +6 −0 doc-tools/man/POST_INSTALL
  131. +9 −0 doc-tools/man/cron.daily/makewhatis
  132. +9 −0 doc-tools/man/cron.weekly/makewhatis
  133. +10 −0 doc-tools/texinfo/BUILD
  134. +1 −0  doc-tools/texinfo/DEPENDS
  135. +24 −0 doc-tools/texinfo/DETAILS
  136. +7 −0 doc-tools/yawl/BUILD
  137. +22 −0 doc-tools/yawl/DETAILS
  138. +14 −0 editors/e3/BUILD
  139. +13 −0 editors/e3/BUILD.alpha
  140. +1 −0  editors/e3/DEPENDS
  141. +20 −0 editors/e3/DETAILS
  142. +3 −0  editors/e3/POST_REMOVE
  143. +10 −0 editors/ed/BUILD
  144. +14 −0 editors/ed/DETAILS
  145. +1 −0  editors/ed/POST_REMOVE
  146. +21 −0 editors/gawk/BUILD
  147. +20 −0 editors/gawk/DETAILS
  148. +2 −0  editors/gawk/POST_REMOVE
  149. +21 −0 editors/gawk/gawk/BUILD
  150. +20 −0 editors/gawk/gawk/DETAILS
  151. +2 −0  editors/gawk/gawk/POST_REMOVE
  152. +1 −0  editors/joe/DEPENDS
  153. +19 −0 editors/joe/DETAILS
  154. +21 −0 editors/nano/BUILD
  155. +3 −0  editors/nano/CONFIGURE
  156. +1 −0  editors/nano/DEPENDS
  157. +36 −0 editors/nano/DETAILS
  158. +1 −0  editors/nano/POST_REMOVE
  159. +10 −0 editors/sed/BUILD
  160. +4 −0 editors/sed/DEPENDS
  161. +18 −0 editors/sed/DETAILS
  162. +1 −0  editors/sed/POST_REMOVE
  163. +13 −0 editors/vim/BUILD
  164. +1 −0  editors/vim/CONFIGURE
  165. +10 −0 editors/vim/DEPENDS
  166. +32 −0 editors/vim/DETAILS
  167. +3 −0  editors/vim/POST_REMOVE
  168. +8 −0 editors/vim/skel/.vimrc
  169. +107 −0 editors/vim/vimrc
  170. +3 −0  editors/zile/DEPENDS
  171. +15 −0 editors/zile/DETAILS
  172. +12 −0 filesys/acl/BUILD
  173. +1 −0  filesys/acl/DEPENDS
  174. +16 −0 filesys/acl/DETAILS
  175. +12 −0 filesys/attr/BUILD
  176. +3 −0  filesys/attr/DEPENDS
  177. +16 −0 filesys/attr/DETAILS
  178. +11 −0 filesys/dosfstools/BUILD
  179. +17 −0 filesys/dosfstools/DETAILS
  180. +18 −0 filesys/e2fsprogs/BUILD
  181. +13 −0 filesys/e2fsprogs/CONFIGURE
  182. +3 −0  filesys/e2fsprogs/DEPENDS
  183. +23 −0 filesys/e2fsprogs/DETAILS
  184. +7 −0 filesys/e2fsprogs/POST_INSTALL
  185. +7 −0 filesys/foremost/BUILD
  186. +19 −0 filesys/foremost/DETAILS
  187. +7 −0 filesys/jfsutils/BUILD
  188. +1 −0  filesys/jfsutils/DEPENDS
  189. +14 −0 filesys/jfsutils/DETAILS
  190. +16 −0 filesys/lvm2/BUILD
  191. +14 −0 filesys/lvm2/BUILD.x86_64
  192. +1 −0  filesys/lvm2/CONFLICTS
  193. +1 −0  filesys/lvm2/DEPENDS
  194. +18 −0 filesys/lvm2/DETAILS
  195. +8 −0 filesys/lvm2/POST_REMOVE
  196. +19 −0 filesys/nfs-utils/BUILD
  197. +1 −0  filesys/nfs-utils/CONFLICTS
  198. +6 −0 filesys/nfs-utils/DEPENDS
  199. +20 −0 filesys/nfs-utils/DETAILS
  200. +3 −0  filesys/nfs-utils/POST_REMOVE
  201. +112 −0 filesys/nfs-utils/init.d/nfs
  202. +2 −0  filesys/nfs-utils/services
  203. +1 −0  filesys/ntfsprogs/CONFLICTS
  204. +18 −0 filesys/ntfsprogs/DETAILS
  205. +2 −0  filesys/ntfsprogs/POST_BUILD
  206. +10 −0 filesys/reiserfsprogs/BUILD
  207. +20 −0 filesys/reiserfsprogs/DETAILS
  208. +7 −0 filesys/sysfsutils/BUILD
  209. +1 −0  filesys/sysfsutils/DEPENDS
  210. +25 −0 filesys/sysfsutils/DETAILS
  211. +4 −0 filesys/sysfsutils/POST_INSTALL
  212. +67 −0 filesys/udev/BUILD
  213. +3 −0  filesys/udev/CONFIGURE
  214. +19 −0 filesys/udev/DEPENDS
  215. +35 −0 filesys/udev/DETAILS
  216. +45 −0 filesys/udev/POST_INSTALL
  217. +12 −0 filesys/udev/PRE_BUILD
  218. +35 −0 filesys/udev/udev
  219. +8 −0 filesys/xfsprogs/BUILD
  220. +12 −0 filesys/xfsprogs/BUILD.sparc64
  221. +2 −0  filesys/xfsprogs/DEPENDS
  222. +15 −0 filesys/xfsprogs/DETAILS
  223. +14 −0 filesys/xfsprogs/POST_INSTALL
  224. +17 −0 ftp/lftp/BUILD
  225. +4 −0 ftp/lftp/CONFIGURE
  226. +5 −0 ftp/lftp/DEPENDS
  227. +18 −0 ftp/lftp/DETAILS
  228. +31 −0 ftp/wget/BUILD
  229. +4 −0 ftp/wget/CONFLICTS
  230. +3 −0  ftp/wget/DEPENDS
  231. +28 −0 ftp/wget/DETAILS
  232. +7 −0 ftp/wget/POST_INSTALL
  233. +1 −0  ftp/wget/POST_REMOVE
  234. +29 −0 kernel/kernel-headers/BUILD
  235. +1 −0  kernel/kernel-headers/CONFLICTS
  236. +15 −0 kernel/kernel-headers/DETAILS
  237. +15 −0 kernel/kernel-headers/DETAILS.x86_64
  238. +29 −0 kernel/kmod/BUILD
  239. +2 −0  kernel/kmod/CONFLICTS
  240. +4 −0 kernel/kmod/DEPENDS
  241. +17 −0 kernel/kmod/DETAILS
  242. +7 −0 kernel/linux-firmware/BUILD
  243. +16 −0 kernel/linux-firmware/DETAILS
  244. +21 −0 kernel/linux/BUILD
  245. +11 −0 kernel/linux/CONFIGURE
  246. +2 −0  kernel/linux/DEPENDS
  247. +28 −0 kernel/linux/DETAILS
  248. +11 −0 kernel/linux/POST_INSTALL
  249. +52 −0 kernel/linux/PRE_BUILD
  250. +15 −0 libs/expat/BUILD
  251. +16 −0 libs/expat/DETAILS
  252. +19 −0 libs/gettext/BUILD
  253. +1 −0  libs/gettext/DEPENDS
  254. +15 −0 libs/gettext/DETAILS
  255. +1 −0  libs/gettext/POST_REMOVE
  256. +6 −0 libs/gettext/PRE_BUILD
  257. +13 −0 libs/glib-2/BUILD
  258. +1 −0  libs/glib-2/CONFIGURE
  259. +3 −0  libs/glib-2/DEPENDS
  260. +18 −0 libs/glib-2/DETAILS
  261. +163 −0 libs/glibc/BUILD
  262. +152 −0 libs/glibc/BUILD.x86_64
  263. +89 −0 libs/glibc/CONFIGURE
  264. +6 −0 libs/glibc/DEPENDS
  265. +37 −0 libs/glibc/DETAILS
  266. +3 −0  libs/glibc/POST_INSTALL
  267. +11 −0 libs/gmp/BUILD
  268. +1 −0  libs/gmp/DEPENDS
  269. +22 −0 libs/gmp/DETAILS
  270. +11 −0 libs/libcap/BUILD
  271. +1 −0  libs/libcap/DEPENDS
  272. +16 −0 libs/libcap/DETAILS
  273. +1 −0  libs/libdaemon/DEPENDS
  274. +26 −0 libs/libdaemon/DETAILS
  275. +1 −0  libs/libelf/DEPENDS
  276. +14 −0 libs/libelf/DETAILS
  277. +10 −0 libs/libidn/BUILD
  278. +1 −0  libs/libidn/DEPENDS
  279. +15 −0 libs/libidn/DETAILS
  280. +7 −0 libs/libmpc/BUILD
  281. +1 −0  libs/libmpc/DEPENDS
  282. +16 −0 libs/libmpc/DETAILS
  283. +7 −0 libs/libtool/BUILD
  284. +18 −0 libs/libtool/DETAILS
  285. +25 −0 libs/libtool/plugin.d/postbuild-libtool.plugin
  286. +7 −0 libs/libusb-compat/BUILD
  287. +1 −0  libs/libusb-compat/DEPENDS
  288. +24 −0 libs/libusb-compat/DETAILS
  289. +7 −0 libs/libusb/BUILD
  290. +1 −0  libs/libusb/DEPENDS
  291. +16 −0 libs/libusb/DETAILS
  292. +7 −0 libs/mpfr/BUILD
  293. +1 −0  libs/mpfr/DEPENDS
  294. +15 −0 libs/mpfr/DETAILS
  295. +56 −0 libs/ncurses/BUILD
  296. +2 −0  libs/ncurses/CONFIGURE
  297. +4 −0 libs/ncurses/DEPENDS
  298. +23 −0 libs/ncurses/DETAILS
  299. +32 −0 libs/pcre/BUILD
  300. +1 −0  libs/pcre/DEPENDS
Sorry, we could not display the entire diff because too many files (587) changed.
33 archive/bzip2/BUILD
@@ -0,0 +1,33 @@
+(
+
+ if [ "$ENABLE_LARGEFILE" == "y" ]; then
+ CFLAGS+=" \$(BIGFILES)"
+ fi
+
+ sedit "s/^CFLAGS=.*$/CFLAGS=$CFLAGS -fPIC/" Makefile &&
+ sedit "s/ln/ln -f/" Makefile &&
+ sedit "s/\$(PREFIX)\/man/\$(PREFIX)\/share\/man/g" Makefile &&
+
+ # Makefile hack to not install static lib
+ sedit "s/all: libbz2.a/all:/g" Makefile &&
+ sedit "s/bzip2: libbz2.a/bzip2:/g" Makefile &&
+ sedit "/cp -f libbz2.a/d" Makefile &&
+ sedit "/chmod a+r \$(PREFIX)\/lib\/libbz2.a/d" Makefile &&
+
+ # build shared lib first so the app part will
+ # not complain about the missing static lib
+ make -f Makefile-libbz2_so PREFIX=/usr &&
+ make PREFIX=/usr &&
+
+ prepare_install &&
+ make PREFIX=/usr install &&
+
+ # shared libs have to be installed separately
+ install -m755 libbz2.so.1.0.6 /usr/lib/libbz2.so.1.0.6 &&
+ ln -sf /usr/lib/libbz2.so.1.0.6 /usr/lib/libbz2.so.1.0 &&
+ ln -sf /usr/lib/libbz2.so.1.0 /usr/lib/libbz2.so.1 &&
+ ln -sf /usr/lib/libbz2.so.1 /usr/lib/libbz2.so &&
+
+ strip /usr/bin/bzip2 /usr/bin/bzip2recover /usr/bin/bzcat /usr/bin/bunzip2
+
+) > $C_FIFO 2>&1
1  archive/bzip2/CONFIGURE
@@ -0,0 +1 @@
+mquery ENABLE_LARGEFILE "Enable large file support?" y
17 archive/bzip2/DETAILS
@@ -0,0 +1,17 @@
+ MODULE=bzip2
+ VERSION=1.0.6
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL=http://www.bzip.org/$VERSION
+ SOURCE_VFY=sha1:3f89f861209ce81a6bab1fd1998c0ef311712002
+ WEB_SITE=http://www.bzip.org
+ ENTERED=20020218
+ UPDATED=20080920
+ SHORT="High-quality data compressor"
+
+cat << EOF
+Bzip2 is a freely available, patent free (see below), high-quality data
+compressor. It typically compresses files to within 10% to 15% of the
+best available techniques (the PPM family of statistical compressors),
+whilst being around twice as fast at compression and six times faster
+at decompression.
+EOF
13 archive/cpio/BUILD
@@ -0,0 +1,13 @@
+(
+
+ default_config &&
+ if module_installed mt-st ; then
+ sedit 's/install:: installdirs all/install:: installdirs/' Makefile &&
+ make cpio rmt
+ else
+ make
+ fi &&
+ prepare_install &&
+ make install
+
+) > $C_FIFO 2>&1
1  archive/cpio/DEPENDS
@@ -0,0 +1 @@
+optional_depends "mt-st" "" "" "To use the BSD mt instead of the GNU-linux mt"
16 archive/cpio/DETAILS
@@ -0,0 +1,16 @@
+ MODULE=cpio
+ VERSION=2.11
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL[0]=$GNU_URL/$MODULE
+ SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
+ SOURCE_VFY=sha1:6f1934b0079dc1e85ddff89cabdf01adb3a74abb
+ WEB_SITE=http://www.gnu.org/software/cpio/cpio.html
+ ENTERED=20011004
+ UPDATED=20100711
+ SHORT="cpio creates cpio archives and have rmt"
+
+cat << EOF
+GNU cpio - Creates cpio or tar archives and provides rmt.
+cpio equivalent to tar with a couple of buts and depends.
+this also provides the rmt command.
+EOF
1  archive/cpio/POST_REMOVE
@@ -0,0 +1 @@
+install-info --delete cpio --info-dir /usr/info
12 archive/gzip/BUILD
@@ -0,0 +1,12 @@
+(
+
+ ./configure --build=$BUILD \
+ --prefix=/usr \
+ --bindir=/bin \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ $OPTS &&
+
+ default_make
+
+) > $C_FIFO 2>&1
18 archive/gzip/DETAILS
@@ -0,0 +1,18 @@
+ MODULE=gzip
+ VERSION=1.4
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL[0]=ftp://ftp.gnu.org/pub/gnu/$MODULE
+ SOURCE_URL[1]=http://www.funet.fi/pub/gnu/alpha/gnu/$MODULE
+ SOURCE_VFY=sha1:1d398dac6a7920a7de6e2685fe472a840eb2ce6e
+ WEB_SITE=http://www.gzip.org
+ ENTERED=20010922
+ UPDATED=20100121
+ SHORT="Compression utility designed to replace compress"
+
+cat << EOF
+gzip - Compresses and decompresses files
+A compression utility designed to replace compress. Much better
+compression and freedom from patented algorithms are its main advantages
+over compress. Gzip decompresses files created by gzip, compress, or
+pack; it detects the input format automatically.
+EOF
1  archive/gzip/POST_REMOVE
@@ -0,0 +1 @@
+install-info --delete gzip --info-dir /usr/info
1  archive/pbzip2/DEPENDS
@@ -0,0 +1 @@
+depends bzip2
17 archive/pbzip2/DETAILS
@@ -0,0 +1,17 @@
+ MODULE=pbzip2
+ VERSION=1.1.6
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL=http://compression.ca/pbzip2
+ SOURCE_VFY=sha1:3b4d0ffa3ac362c3702793cc5d9e61664d468aeb
+ WEB_SITE=http://compression.ca/pbzip2
+ ENTERED=20110221
+ UPDATED=20111102
+ SHORT="parallel implementation of the bzip2 compressor"
+
+cat << EOF
+pbzip2 is a parallel implementation of the bzip2 block-sorting
+file compressor that uses pthreads and achieves near-linear
+speedup on SMP machines. The output of this version is fully
+compatible with bzip2 v1.0.2 or newer (ie: anything compressed
+with pbzip2 can be decompressed with bzip2).
+EOF
14 archive/rpmunpack/BUILD
@@ -0,0 +1,14 @@
+(
+
+ cp ${SOURCE_CACHE}/$SOURCE2 rpm2cpio &&
+ patch_it $SOURCE3 0 &&
+ make &&
+ prepare_install &&
+ install -m755 -s rpmunpack /usr/bin/ &&
+
+ if ! module_installed rpm && ! module_installed rpm-old ; then
+ # rpm module provides /usr/bin/rpm2cpio
+ install -m755 rpm2cpio /usr/bin/
+ fi
+
+) > $C_FIFO 2>&1
2  archive/rpmunpack/DEPENDS
@@ -0,0 +1,2 @@
+depends cpio
+depends xz
20 archive/rpmunpack/DETAILS
@@ -0,0 +1,20 @@
+ MODULE=rpmunpack
+ VERSION=0
+ SOURCE=$MODULE.tar.gz
+ SOURCE2=rpm2cpio
+ SOURCE3=rpmunpack_lzma-2.patch
+ SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
+ SOURCE_URL=http://www.ibiblio.org/pub/Linux/utils/package
+ SOURCE2_URL=http://www.iagora.com/~espel
+ SOURCE3_URL=$PATCH_URL
+ SOURCE_VFY=sha1:2ac43b6727d149c64347faade0827ec0f7a839e2
+ SOURCE2_VFY=sha1:e100284331132245b9dbb9e9c11af7d41e65940f
+ SOURCE3_VFY=sha1:3a9f9109c7e2aeaa06d9136b2ec0efc3921c970b
+ WEB_SITE=unknown
+ ENTERED=20011017
+ UPDATED=20100417
+ SHORT="Program to extract an archive from a RPM file"
+
+cat << EOF
+This program converts rpm archives to cpio archives for cpio or afio.
+EOF
34 archive/rpmunpack/plugin.d/unpack-rpm.plugin
@@ -0,0 +1,34 @@
+#!/bin/bash
+#############################################################
+# #
+# unpack-rpm.plugin - generic plugin that unpacks rpmfiles #
+# #
+#############################################################
+# #
+# Copyright 2005 by Auke Kok under GPLv2 #
+# Copyright 2009 by Stefan Wold under GPLv2 #
+# #
+#############################################################
+
+
+plugin_unpack_rpm() {
+ case $1 in
+ *.rpm)
+ if [ ! -x /usr/bin/rpm2cpio ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack rpm files without ${MODULE_COLOR}rpmunpack${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking rpm file \"$1\""
+ rpm2cpio $1 | cpio -idm || return 1
+ ;;
+ *)
+ # fallback: we don't know what to do!
+ return 2
+ ;;
+ esac
+ # return success!
+ return 0
+}
+
+
+plugin_register SOURCE_UNPACK plugin_unpack_rpm
16 archive/tar/BUILD
@@ -0,0 +1,16 @@
+(
+
+ export FORCE_UNSAFE_CONFIGURE=1 &&
+ cp $SOURCE_CACHE/$SOURCE2 tar.1.gz &&
+ # this sedit restores the tar --list to its older 1.15.1 format
+ sedit "s/tartime (st->mtime, false)/tartime (st->mtime, true)/" src/list.c &&
+ ./configure --build=$BUILD \
+ --prefix=/usr \
+ --libexecdir=/bin \
+ --bindir=/bin \
+ --infodir=/usr/share/info \
+ $OPTS &&
+ default_make
+ install -c -m644 tar.1.gz /usr/share/man/man1
+
+) > $C_FIFO 2>&1
9 archive/tar/DEPENDS
@@ -0,0 +1,9 @@
+# actually optional, but since most sources are archived
+# as *.tar.gz or *.tar.bz2 we're setting both to required
+depends gzip
+depends bzip2
+
+optional_depends "pbzip2" "--with-bzip2=/usr/bin/pbzip2" "" "for parallel bzip2 (de)compression (speedup on multi-core systems)"
+optional_depends "xz" "--with-xz=/usr/bin/xz" "" "for xz compression support"
+optional_depends "lzip" "--with-lzip=/usr/bin/lzip" "" "for lzip compression support"
+optional_depends "texinfo" "" "" "for info docs"
29 archive/tar/DETAILS
@@ -0,0 +1,29 @@
+ MODULE=tar
+ VERSION=1.26
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=$MODULE.1-1.26.gz
+ SOURCE_URL[0]=$GNU_URL/$MODULE
+ SOURCE_URL[1]=ftp://ftp.gnu.org/gnu/$MODULE
+ SOURCE2_URL=$PATCH_URL
+ SOURCE_VFY=sha1:70f298c3cd997b694864c55e6d8655324c87a0cc
+ SOURCE2_VFY=sha1:b1c90348615507bf8c5c281705090f69be365082
+ WEB_SITE=http://www.gnu.org/software/tar/tar.html
+ ENTERED=20010922
+ UPDATED=20110417
+ SHORT="Creates GNU tar archives"
+
+cat << EOF
+GNU tar - Creates tar archives
+Can create tar archives, as well as other forms of manipulation. For
+example, you can use tar on previously created archives to extract
+files, store additional files, or update or list files which were
+already stored.
+Tar can direct its output to available devices, files, or other programs
+(using pipes); tar can even access remote devices or files (as
+archives).
+The program saves many files together into a single tape or disk
+archive, and can restore individual files from the archive. It includes
+multivolume support, the ability to archive sparse files, automatic
+archive compression/decompression, remote archives and special features
+that allow 'tar' to be used for incremental and full backups.
+EOF
1  archive/tar/POST_REMOVE
@@ -0,0 +1 @@
+install-info --delete tar --info-dir /usr/share/info
15 archive/unzip/BUILD
@@ -0,0 +1,15 @@
+(
+
+ sedit "s/-O3/$CFLAGS/" unix/configure unix/Makefile &&
+ sedit "s/MANDIR = \$(prefix)\/man/MANDIR = \$(prefix)\/share\/man/" unix/Makefile &&
+ sedit 's@/usr/local@/usr@g' unix/Makefile unix/configure &&
+ cp -rf unix/* . &&
+ ./configure &&
+ make linux_shlib &&
+ make linux &&
+ prepare_install &&
+ make install &&
+ cp -af libunzip.s* /usr/lib &&
+ gather_docs BUGS WHERE ToDo
+
+) > $C_FIFO 2>&1
15 archive/unzip/BUILD.x86_64
@@ -0,0 +1,15 @@
+(
+
+ sedit "s/-O3/$CFLAGS/" unix/configure unix/Makefile &&
+ sedit "s/MANDIR = \$(prefix)\/man/MANDIR = \$(prefix)\/share\/man/" unix/Makefile &&
+ sedit 's@/usr/local@/usr@g' unix/Makefile unix/configure &&
+ cp -rf unix/* . &&
+ ./configure &&
+ #make linux_shlib &&
+ make linux_noasm &&
+ prepare_install &&
+ make install &&
+ #cp -af libunzip.s* /usr/lib &&
+ gather_docs BUGS WHERE ToDo
+
+) > $C_FIFO 2>&1
16 archive/unzip/DETAILS
@@ -0,0 +1,16 @@
+ MODULE=unzip
+ VERSION=60
+ SOURCE=$MODULE$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE$VERSION
+ SOURCE_URL[0]=$SFORGE_URL/infozip/
+ SOURCE_VFY=sha1:abf7de8a4018a983590ed6f5cbd990d4740f8a22
+ WEB_SITE=http://www.info-zip.org/UnZip.html
+ ENTERED=20010922
+ UPDATED=20090525
+ SHORT="PKWARE compatible decompressor"
+
+cat << EOF
+Info-ZIP's purpose is to provide free, portable, high-quality versions
+of the Zip and UnZip compressor-archiver utilities that are compatible
+with the DOS-based PKZIP by PKWARE, Inc.
+EOF
33 archive/unzip/plugin.d/unpack-zip.plugin
@@ -0,0 +1,33 @@
+#!/bin/bash
+#############################################################
+# #
+# unpack-zip.plugin - generic plugin that unpacks zipfiles #
+# #
+#############################################################
+# #
+# Copyright 2005 by Auke Kok under GPLv2 #
+# #
+#############################################################
+
+
+plugin_unpack_zip() {
+ case $1 in
+ *.zip)
+ if [ ! -x /usr/bin/unzip ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack zip-files without ${MODULE_COLOR}unzip${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking zip file \"$1\""
+ unzip -q -o $1 || return 1
+ ;;
+ *)
+ # fallback: we don't know what to do!
+ return 2
+ ;;
+ esac
+ # return success!
+ return 0
+}
+
+
+plugin_register SOURCE_UNPACK plugin_unpack_zip
9 archive/xz/BUILD
@@ -0,0 +1,9 @@
+(
+
+ sedit "s:\$(libdir)/pkgconfig:/usr/lib/pkgconfig:" src/liblzma/Makefile.am src/liblzma/Makefile.in &&
+
+ OPTS+=" --disable-static --libdir=/lib " &&
+
+ default_build
+
+) > $C_FIFO 2>&1
1  archive/xz/DEPENDS
@@ -0,0 +1 @@
+depends pkgconfig
15 archive/xz/DETAILS
@@ -0,0 +1,15 @@
+ MODULE=xz
+ VERSION=5.0.3
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL=http://tukaani.org/$MODULE
+ SOURCE_VFY=sha1:79661fd1c24603437e325d76732046b1da683b32
+ WEB_SITE=http://tukaani.org/xz
+ ENTERED=20090224
+ UPDATED=20120304
+ SHORT="Utils for XZ archive format"
+
+cat << EOF
+XZ Utils (new name for the improved format/tools) is the successor to lzma.
+New suffix, ".xz" replaces ".lzma". Note the better-compressed tar ball name
+has the ".xz" suffix instead of lzma.
+EOF
70 archive/xz/plugin.d/unpack-xz.plugin
@@ -0,0 +1,70 @@
+#!/bin/bash
+####################################################################
+# #
+# unpack-xz.plugin - generic plugin that unpacks: #
+# tar.xz, tar.lzma, xz and lzma files #
+# #
+####################################################################
+# #
+# Copyright 2009 by Zbigniew Luszpinski zbiggy(a)o2,pl under GPLv2 #
+# #
+# Parts of code of this plugin are "borrowed" from #
+# unpack-*.plugin by Auke Kok #
+####################################################################
+
+
+plugin_unpack_xz() {
+ case $1 in
+ *.tar.xz)
+ if [ ! -x /bin/tar ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack tar.xz file without ${MODULE_COLOR}tar${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ if [ ! -x /usr/bin/xz ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack tar.xz file without ${MODULE_COLOR}xz${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking xz file \"$1\""
+ tar Jxf $1 --no-same-owner --no-same-permissions || return 1
+ ;;
+ *.tar.lzma)
+ if [ ! -x /bin/tar ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack tar.lzma file without ${MODULE_COLOR}tar${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ if [ ! -x /usr/bin/xz ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack tar.lzma file without ${MODULE_COLOR}xz${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking xz file \"$1\""
+ tar Jxf $1 --no-same-owner --no-same-permissions || return 1
+ ;;
+ *.xz)
+ if [ ! -x /usr/bin/xz ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack xz file without ${MODULE_COLOR}xz${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking xz file \"$1\""
+ cp $1 . || return 1
+ xz $1 || return 1
+ ;;
+ *.lzma)
+ if [ ! -x /usr/bin/xz ]; then
+ message "${PROBLEM_COLOR}! Cannot unpack lzma file without ${MODULE_COLOR}xz${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}";
+ exit 1
+ fi
+ debug_msg "Unpacking xz file \"$1\""
+ cp $1 . || return 1
+ xz $1 || return 1
+ ;;
+ *)
+ # fallback: we don't know what to do!
+ return 2
+ ;;
+ esac
+ # return success!
+ return 0
+}
+
+
+plugin_register SOURCE_UNPACK plugin_unpack_xz
14 archive/zip/BUILD
@@ -0,0 +1,14 @@
+(
+
+ sedit "s/MANDIR = \$(prefix)\/man/MANDIR = \$(prefix)\/share\/man/" unix/Makefile &&
+ sedit 's@/usr/local@/usr@g' unix/Makefile unix/configure &&
+ sedit "s/-O3/$CFLAGS/" unix/configure &&
+ chmod 700 unix/configure &&
+ cp -rf unix/* . &&
+ ./configure &&
+ make generic &&
+ prepare_install &&
+ make install &&
+ gather_docs WHATSNEW TODO WHERE
+
+) > $C_FIFO 2>&1
16 archive/zip/DETAILS
@@ -0,0 +1,16 @@
+ MODULE=zip
+ VERSION=30
+ SOURCE=$MODULE$VERSION.tar.gz
+ SOURCE_URL=$SFORGE_URL/infozip/
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE$VERSION
+ SOURCE_VFY=sha1:c9f4099ecf2772b53c2dd4a8e508064ce015d182
+ WEB_SITE=http://www.info-zip.org/Zip.html
+ ENTERED=20010922
+ UPDATED=20090525
+ SHORT="PKWARE compatible compressor"
+
+cat << EOF
+Info-ZIP's purpose is to provide free, portable, high-quality versions
+of the Zip and UnZip compressor-archiver utilities that are compatible
+with the DOS-based PKZIP by PKWARE, Inc.
+EOF
20 archive/zlib/BUILD
@@ -0,0 +1,20 @@
+(
+
+ sedit "s:\${libdir}/pkgconfig:/usr/lib/pkgconfig:" Makefile.in &&
+
+ ./configure --prefix=/usr &&
+ make &&
+
+ ./configure --prefix=/usr \
+ --libdir=/lib \
+ --shared &&
+
+ # This fixes a bug in zlib's configure script that fails to set
+ # CFLAGS properly when CFLAGS is passed to it and --shared is set
+ if [ "`arch`" = "alpha" ]; then
+ sedit 's/^CFLAGS *=/CFLAGS=-fPIC /' Makefile
+ fi &&
+
+ default_make
+
+) > $C_FIFO 2>&1
20 archive/zlib/BUILD.x86_64
@@ -0,0 +1,20 @@
+(
+
+ sedit "s:\${libdir}/pkgconfig:/usr/lib/pkgconfig:" Makefile.in &&
+
+ unset CFLAGS &&
+
+ prepare_install &&
+
+ ./configure --prefix=/usr &&
+ sedit 's/^CFLAGS *=/CFLAGS=-fPIC /' Makefile &&
+ make &&
+ make install &&
+
+ ./configure --prefix=/usr --libdir=/lib --shared &&
+ sedit 's/^CFLAGS *=/CFLAGS=-fPIC /' Makefile &&
+ make &&
+ make install &&
+ rm /lib/libz.a
+
+) > $C_FIFO 2>&1
1  archive/zlib/DEPENDS
@@ -0,0 +1 @@
+depends pkgconfig
17 archive/zlib/DETAILS
@@ -0,0 +1,17 @@
+ MODULE=zlib
+ VERSION=1.2.6
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL[0]=http://www.zlib.net
+ SOURCE_URL[1]=$SFORGE_URL/libpng/zlib
+ SOURCE_VFY=sha1:3d445731e4bfea1cd00f36567d77d6e5f5a19be9
+ WEB_SITE=http://www.zlib.net
+ ENTERED=20010922
+ UPDATED=20120130
+ SHORT="lossless data compression library"
+
+cat << EOF
+zlib is designed to be a free, general-purpose, legally unencumbered --
+that is, not covered by any patents -- lossless data-compression library
+for use on virtually any computer hardware and operating system. The
+zlib data format is itself portable across platforms.
+EOF
3  chat/irssi/CONFIGURE
@@ -0,0 +1,3 @@
+mquery ENABLE_BOT "Enable irssi-bot?" n --with-bot --without-bot
+mquery ENABLE_PROXY "Enable irssi-proxy?" n --with-proxy --without-proxy
+mquery ENABLE_IPV6 "Enable IPV6 support?" n --enable-ipv6 --disable-ipv6
5 chat/irssi/DEPENDS
@@ -0,0 +1,5 @@
+depends glib-2
+depends ncurses
+depends perl
+
+optional_depends openssl "" "--disable-ssl" "for SSL support"
18 chat/irssi/DETAILS
@@ -0,0 +1,18 @@
+ MODULE=irssi
+ VERSION=0.8.15
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL=http://irssi.org/files
+ SOURCE_VFY=sha1:b79ce8c2c98a76b004f63706e7868cd363000d89
+ WEB_SITE=http://irssi.org
+ ENTERED=20020908
+ UPDATED=20100406
+ SHORT="irssi: an IRC client"
+
+cat << EOF
+Irssi is a modular IRC client for UNIX that currently has only text mode
+user interface, but 80-90% of the code isn't text mode specific, so other
+UIs could be created pretty easily. Also, Irssi isn't really even IRC
+specific anymore, there's already working SILC and ICB modules
+available. Support for other protocols like ICQ and Jabber could be
+created some day too.
+EOF
9 compilers/bin86/BUILD
@@ -0,0 +1,9 @@
+(
+
+ sedit "s/-O2/$CFLAGS/1" Makefile &&
+ sedit "s:(PREFIX)/man:(PREFIX)/share/man:1" Makefile &&
+ sedit "s:/usr/local:/usr:" Makefile &&
+
+ default_build
+
+) > $C_FIFO 2>&1
11 compilers/bin86/BUILD.x86_64
@@ -0,0 +1,11 @@
+(
+
+ patch_it $SOURCE2 1 &&
+
+ sedit "s/-O2/$CFLAGS/1" Makefile &&
+ sedit "s:(PREFIX)/man:(PREFIX)/share/man:1" Makefile &&
+ sedit "s:/usr/local:/usr:" Makefile &&
+
+ default_build
+
+) > $C_FIFO 2>&1
17 compilers/bin86/DETAILS
@@ -0,0 +1,17 @@
+ MODULE=bin86
+ VERSION=0.16.18
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL[0]=http://www.debath.co.uk/dev86
+ SOURCE_URL[1]=$MIRROR_URL
+ SOURCE_VFY=sha1:68f408573d4e350e65cbd505896eb8786e5f8383
+ WEB_SITE=http://www.debath.co.uk
+ ENTERED=20010922
+ UPDATED=20110111
+ SHORT="a86 and ld86 provide a complete 8086/80386 assembler and loader"
+
+cat << EOF
+as86 and ld86 provide a complete 8086 assembler and loader which can
+generate 32-bit code for the 386+ processors. These tools are used to
+create the 16-bit bootsector and setup binaries for linux. The syntax is
+not compatible with the GNU assembler.
+EOF
20 compilers/bin86/DETAILS.x86_64
@@ -0,0 +1,20 @@
+ MODULE=bin86
+ VERSION=0.16.18
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE2=$MODULE-0.16.17-x86_64-1.patch
+ SOURCE_URL[0]=http://www.debath.co.uk/dev86
+ SOURCE_URL[1]=$MIRROR_URL
+ SOURCE2_URL=http://www.linuxfromscratch.org/patches/downloads/$MODULE
+ SOURCE_VFY=sha1:68f408573d4e350e65cbd505896eb8786e5f8383
+ SOURCE2_VFY=sha1:2c967c062fbee4e40ca1bf55feec2033e132e0a9
+ WEB_SITE=http://www.debath.co.uk
+ ENTERED=20010922
+ UPDATED=20110111
+ SHORT="a86 and ld86 provide a complete 8086/80386 assembler and loader"
+
+cat << EOF
+as86 and ld86 provide a complete 8086 assembler and loader which can
+generate 32-bit code for the 386+ processors. These tools are used to
+create the 16-bit bootsector and setup binaries for linux. The syntax is
+not compatible with the GNU assembler.
+EOF
48 compilers/gcc/BUILD
@@ -0,0 +1,48 @@
+(
+
+ patch_it $SOURCE_CACHE/$SOURCE2 1 &&
+
+ # This will fix an issue where installwatch fail to track installed headers
+ sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
+
+ mkdir BUILD &&
+ cd BUILD &&
+
+ #sedit 's/trap 0/trap "" 0/' ../configure &&
+ # We use libiberty.a from binutils instead
+ sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in &&
+
+ LANGUAGES="${LANGUAGES:=c++}" &&
+
+ ../configure --build=$BUILD \
+ --host=$BUILD \
+ --enable-languages=$LANGUAGES \
+ --prefix=${MODULE_PREFIX} \
+ --infodir=${MODULE_PREFIX}/share/info \
+ --mandir=${MODULE_PREFIX}/share/man \
+ --enable-__cxa_atexit \
+ --enable-threads \
+ --disable-nls \
+ --enable-target-optspace \
+ --with-gnu-ld \
+ --with-system-zlib \
+ --enable-shared \
+ $OPTS &&
+
+ make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean &&
+ prepare_install &&
+ make install &&
+
+# This used to be the POST_INSTALL and it really should not have. Doing this sort of thing means
+# these files will not be tracked; that is a no-no-no.
+
+ cd /usr/lib/gcc/$BUILD/$VERSION &&
+ ln -sf /usr/bin/cpp cpp &&
+ cd /lib/ &&
+ ln -sf /usr/bin/cpp cpp &&
+
+ if [ ! -e /usr/bin/cc ] ; then
+ ln -s gcc /usr/bin/cc
+ fi
+
+) > $C_FIFO 2>&1
50 compilers/gcc/BUILD.x86_64
@@ -0,0 +1,50 @@
+(
+
+ patch_it $SOURCE_CACHE/$SOURCE2 1 &&
+
+ # This will fix an issue where installwatch fail to track installed headers
+ sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
+
+
+ mkdir BUILD &&
+ cd BUILD &&
+
+ #sedit 's/trap 0/trap "" 0/' ../configure &&
+ # We use libiberty.a from binutils instead
+ sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in &&
+
+ LANGUAGES=${LANGUAGES:=c++} &&
+
+ ../configure --host=$BUILD \
+ --build=$BUILD \
+ --enable-languages=$LANGUAGES \
+ --prefix=${MODULE_PREFIX} \
+ --infodir=${MODULE_PREFIX}/share/info \
+ --mandir=${MODULE_PREFIX}/share/man \
+ --enable-__cxa_atexit \
+ --enable-threads \
+ --disable-nls \
+ --enable-target-optspace \
+ --with-gnu-ld \
+ --with-system-zlib \
+ --enable-shared \
+ --disable-multilib \
+ $OPTS &&
+
+ make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean &&
+ prepare_install &&
+ make install &&
+
+# This used to be the POST_INSTALL and it really should not have. Doing this sort of thing means
+# these files will not be tracked; that is a no-no-no.
+
+ cd /usr/lib/gcc/$BUILD/$VERSION &&
+ ln -sf /usr/bin/cpp cpp &&
+ cd /lib/ &&
+ ln -sf /usr/bin/cpp cpp &&
+
+ if [ ! -e /usr/bin/cc ] ; then
+ ln -s gcc /usr/bin/cc
+ fi
+
+) > $C_FIFO 2>&1
32 compilers/gcc/CONFIGURE
@@ -0,0 +1,32 @@
+
+# only lin -r gcc will trigger the language selector!
+if [ -n "$RECONFIGURE" ] ; then
+
+ LANGUAGES=$(get_module_config LANGUAGES)
+ [ -z "$LANGUAGES" ] && LANGUAGES=${LANGUAGES:=c++}
+
+ if query "Do you want to select additional compiler languages ? " n ; then
+ OPTIONS=(
+ "java" "Java" "off"
+ "objc" "Objective C" "off"
+ "fortran" "Fortran" "off"
+ )
+ RESULT=`dialog --title "Select additional compiler languages" \
+ --stdout \
+ --separate-output \
+ --checklist "Available additional languages:" \
+ 0 0 0 \
+ "${OPTIONS[@]}"`
+
+ LANGUAGES="c++,$(echo $RESULT | sed 's/ /,/g')"
+ set_module_config LANGUAGES "$LANGUAGES"
+
+ else
+
+ LANGUAGES=$(get_module_config LANGUAGES)
+ [ -z "$LANGUAGES" ] && LANGUAGES=${LANGUAGES:=c++}
+ set_module_config LANGUAGES "$LANGUAGES"
+
+ fi
+
+fi
5 compilers/gcc/DEPENDS
@@ -0,0 +1,5 @@
+depends libmpc
+depends binutils
+
+optional_depends "cloog-ppl" "" "" "for Graphite Optimizer"
+optional_depends "libelf" "" "" "for ELF object file access library support"
21 compilers/gcc/DETAILS
@@ -0,0 +1,21 @@
+ MODULE=gcc
+ VERSION=4.6.3
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=$MODULE-4.5.0-python.patch.bz2
+ SOURCE_URL[0]=$GNU_URL/gcc/$MODULE-$VERSION
+ SOURCE_URL[1]=ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION
+ SOURCE_URL[2]=http://www.online-mirror.org/gcc/$MODULE-$VERSION
+ SOURCE2_URL=$PATCH_URL
+ SOURCE_VFY=sha1:ce317ca5c8185b58bc9300182b534608c578637f
+ SOURCE2_VFY=sha1:7c1fc0b526b74cce301b85acee04011ed6e5aa5a
+ WEB_SITE=http://gcc.gnu.org
+ ENTERED=20020628
+ UPDATED=20120301
+ SHORT="GNU compiler collection"
+
+cat << EOF
+gcc - GNU Compiler Collection.
+The GNU Compiler Collection is a suite of compilers that compile C, C++,
+Objective C, Fortran, Java, and CHILL for a wide variety of
+architectures. Front-ends for Ada95 and Pascal also exist.
+EOF
4 compilers/gcc/POST_REMOVE
@@ -0,0 +1,4 @@
+install-info --delete chill --info-dir /usr/share/info
+install-info --delete cpp --info-dir /usr/share/info
+install-info --delete g77 --info-dir /usr/share/info
+install-info --delete gcc --info-dir /usr/share/info
633 compilers/gcc/plugin.d/optimize-gcc_4_6.plugin
@@ -0,0 +1,633 @@
+#
+# gcc-4.6.x compiler optimizations plugin
+#
+
+plugin_compiler_gcc_4_6_optimize()
+{
+ if [ "${LUNAR_COMPILER:-GCC_4_6}" != "GCC_4_6" ]; then
+ return 2
+ fi
+
+ debug_msg "plugin_compiler_gcc_4_6_optimize($@)"
+ if [ -f /etc/lunar/local/optimizations.GCC_4_6 ]; then
+ . /etc/lunar/local/optimizations.GCC_4_6
+ fi
+
+ # some local macro's
+ cflags_add()
+ {
+ CFLAGS="$CFLAGS $@"
+ }
+
+ cxxflags_add()
+ {
+ CXXFLAGS="$CXXFLAGS $@"
+ }
+
+ cppflags_add()
+ {
+ CPPFLAGS="$CPPFLAGS $@"
+ }
+
+ c_cxx_flags_add()
+ {
+ cflags_add $@
+ cxxflags_add $@
+ }
+
+ # CFLAGS/CXXFLAGS - base optimization
+ case $BOPT in
+ None) c_cxx_flags_add "-O0" ;;
+ Small) c_cxx_flags_add "-Os" ;;
+ Fast) c_cxx_flags_add "-O1" ;;
+ Faster) c_cxx_flags_add "-O2" ;;
+ Fastest) c_cxx_flags_add "-O3" ;;
+ Insane) c_cxx_flags_add "-Ofast" ;;
+ esac
+
+ # CFLAGS -march cpu-specific optimization
+ if [ -n "$CPU" ]; then
+ c_cxx_flags_add "-march=$CPU"
+ fi
+
+ # GCC specific extra optimizations
+ for SP in ${SPD[@]}; do
+ case $SP in
+ Speedy) c_cxx_flags_add "-funroll-loops" ;;
+ Regparm) c_cxx_flags_add "-mregparm=3" ;;
+ Risky) c_cxx_flags_add "-ffast-math" ;;
+ Pointers) c_cxx_flags_add "-fomit-frame-pointer" ;;
+ Siblings) c_cxx_flags_add "-foptimize-sibling-calls" ;;
+ Profiling)
+ c_cxx_flags_add "-fprofile-arcs"
+ set_local_config "KEEP_SOURCE" "on"
+ ;;
+ Branching) c_cxx_flags_add "-fbranch-probabilities" ;;
+ Aliasing) c_cxx_flags_add "-fstrict-aliasing" ;;
+ Cprop) c_cxx_flags_add "-fno-cprop-registers" ;;
+ Float) c_cxx_flags_add "-ffloat-store" ;;
+ Address) c_cxx_flags_add "-fforce-addr" ;;
+ Align) c_cxx_flags_add "-falign-functions -falign-loops -falign-jumps" ;;
+ Expensive) c_cxx_flags_add "-fexpensive-optimizations" ;;
+ Doubles) c_cxx_flags_add "-malign-double" ;;
+ Tracer) c_cxx_flags_add "-ftracer" ;;
+ Blocks) c_cxx_flags_add "-freorder-blocks" ;;
+ esac
+ done
+
+ # STACK - kind of dangerous - shouldn't we just remove this?
+ if (( STACK > 0 )) ; then
+ c_cxx_flags_add "-mpreferred-stack-boundary=$STACK"
+ cppflags_add "-mpreferred-stack-boundary=$STACK"
+ fi
+
+ for XTR in ${XTRA[@]}; do
+ case $XTR in
+ MMX) c_cxx_flags_add "-mmmx" ;;
+ SSE) c_cxx_flags_add "-msse" ;;
+ SSE2) c_cxx_flags_add "-msse2" ;;
+ SSE3) c_cxx_flags_add "-msse3" ;;
+ SSSE3) c_cxx_flags_add "-mssse3" ;;
+ SSE4) c_cxx_flags_add "-msse4" ;;
+ SSE4.1) c_cxx_flags_add "-msse4.1" ;;
+ SSE4.2) c_cxx_flags_add "-msse4.2" ;;
+ SSE4A) c_cxx_flags_add "-msse4a" ;;
+ SSE5) c_cxx_flags_add "-msse5" ;;
+ 3dnow) c_cxx_flags_add "-m3dnow" ;;
+ Altivec) c_cxx_flags_add "-maltivec" ;;
+ AVX) c_cxx_flags_add "-mavx" ;;
+ AES) c_cxx_flags_add "-maes" ;;
+ PCLMUL) c_cxx_flags_add "-mpclmul" ;;
+ POPCNT) c_cxx_flags_add "-mpopcnt" ;;
+ ABM) c_cxx_flags_add "-mabm" ;;
+ esac
+ done
+
+ case $FPM in
+ x387) c_cxx_flags_add "-mfpmath=387" ;;
+ SSE) c_cxx_flags_add "-mfpmath=sse" ;;
+ Both) c_cxx_flags_add "-mfpmath=both" ;;
+ esac
+
+ for OPT in ${CC_OPTS[@]}; do
+ case $OPT in
+ Deprecated)
+ cxxflags_add "-Wno-deprecated"
+ ;;
+ Debug)
+ c_cxx_flags_add "-g"
+ ;;
+ Pipe)
+ c_cxx_flags_add "-pipe"
+ ;;
+ Fortify)
+ c_cxx_flags_add "-D_FORTIFY_SOURCE=2"
+ ;;
+ StackProt)
+ c_cxx_flags_add "-fstack-protector"
+ ;;
+ esac
+ done
+
+ CC=gcc
+ CXX=g++
+ CPP=cpp
+
+ if [ -n "$MYCFLAGS" ]; then
+ CFLAGS=$MYCFLAGS
+ CXXFLAGS=$MYCFLAGS
+ fi
+ if [ -n "$MYCXXFLAGS" ]; then
+ CXXFLAGS=$MYCXXFLAGS
+ fi
+
+ export CFLAGS CXXFLAGS CPPFLAGS
+ export CC CXX CPP
+
+ verbose_msg "CC=\"$CC\""
+ verbose_msg "CXX=\"$CXX\""
+ verbose_msg "CPP=\"$CPP\""
+ verbose_msg "CFLAGS=\"$CFLAGS\""
+ verbose_msg "CXXFLAGS=\"$CXXFLAGS\""
+ verbose_msg "CPPFLAGS=\"$CPPFLAGS\""
+
+ return 2
+}
+
+
+plugin_compiler_gcc_4_6_menu()
+{
+ # The main code calls this function WITHOUT $1 to find out which
+ # compiler optimization plugins exist. It then returns the plugin
+ # identifier which can be saved in $LUNAR_COMPILER as the user's
+ # choice for COMPILERS
+ if [ -z "$1" ]; then
+ echo "GCC_4_6"
+ echo "GNU C Compiler suite version 4.6.x"
+ return 2
+ elif [ "$1" != "GCC_4_6" ]; then
+ # we don't display anything when the user selected a
+ # different menu
+ return 2
+ fi
+
+ # now we are done with determining if we are really the menu
+ # that the user wants - so we can display it
+ menu()
+ {
+ unset RESULT
+ if [ "$1" == "checklist" ]; then
+ RESULT=`$DIALOG --no-cancel --item-help --separate-output --checklist "$2" 0 0 0 "${OPTIONS[@]}"`
+ if [ $? != 0 ]; then
+ return 1
+ fi
+ elif [ "$1" == "radiolist" ]; then
+ RESULT=`$DIALOG --no-cancel --item-help --radiolist "$2" 0 0 0 "${OPTIONS[@]}"`
+ if [ $? != 0 ]; then
+ return 1
+ fi
+ fi
+ RESULT=$(echo $RESULT | sed -e 's:^"::' -e 's:"$::')
+ return 0
+ }
+
+ save_optimizations()
+ {
+ debug_msg "save_optimizations($@)"
+ cat >/etc/lunar/local/optimizations.GCC_4_6 <<EOF
+CPU=$CPU
+BOPT=$BOPT
+SPD=( $(echo ${SPD[@]} ) )
+XTRA=( $(echo ${XTRA[@]}) )
+FPM=$FPM
+CC_OPTS=( $(echo ${CC_OPTS[@]} ) )
+STACK=$STACK
+EOF
+ }
+
+ if [ -f /etc/lunar/local/optimizations.GCC_4_6 ]; then
+ . /etc/lunar/local/optimizations.GCC_4_6
+ fi
+
+ export IFS=$'\t\n'
+ TITLE="Lunar Compiler Optimizations"
+
+ SAFE_OPTIMIZATIONS=${SAFE_OPTIMIZATIONS:-on}
+
+ while true; do
+ unset OPTIONS
+ IS_DEFAULT=$([ `get_local_config LUNAR_COMPILER` == "GCC_4_6" ] && echo DEFAULT || get_local_config LUNAR_COMPILER)
+ DEFAULT=${CHOICE:-safe}
+ CHOICE=`$DIALOG --title "$TITLE" --ok-label "Select" --cancel-label "Close" --default-item "$DEFAULT" --item-help --menu "" 0 0 0 $(
+ echo "default"
+ echo "Set this compiler as default [$IS_DEFAULT]"
+ echo "Enables you to substitute the default C compiler"
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ] ; then
+ echo "safe"
+ echo "Turn on optimization safety [$SAFE_OPTIMIZATIONS]"
+ echo "Only allow safe optimizations (removes dangerous settings!)"
+ else
+ echo "safe"
+ echo "Turn off optimization safety [$SAFE_OPTIMIZATIONS]"
+ echo "Allow potentially unsafe optimizations (DANGEROUS!)"
+ fi
+ echo "bopt"
+ echo "Base speed optimization [$BOPT]"
+ echo "Select the base optimization from -Os, -O0, -O1 etc"
+ echo "cpu"
+ echo "CPU selection [$CPU]"
+ echo "Select the target CPU type"
+ echo "xtra"
+ echo "CPU extensions [${XTRA[@]}]"
+ echo "Select CPU extensions"
+ echo "spd"
+ echo "Specialized optimizations [${SPD[@]}]"
+ echo "Select specific compiler flags for expensive and risky optimizations"
+ echo "fpm"
+ echo "Floating point optimizations [$FPM]"
+ echo "enable specific floating point optimizations"
+ echo "cc_opt"
+ echo "General C/C++ options [${CC_OPTS[@]}]"
+ echo "Select named pipes, warnings on deprecated symbols"
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ] ; then
+ echo "stack"
+ echo "Stack [$STACK]"
+ echo "Set the stack size"
+ fi) `
+ if [ $? != 0 ]; then
+ save_optimizations
+ set_local_config SAFE_OPTIMIZATIONS $SAFE_OPTIMIZATIONS
+ return
+ fi
+
+ case $CHOICE in
+ default)
+ if [ "$IS_DEFAULT" != "DEFAULT" ]; then
+ set_local_config LUNAR_COMPILER GCC_4_6
+ $DIALOG --msgbox "Gcc 4.6 is now the default compiler!" 6 60
+ fi
+ ;;
+ safe)
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ SAFE_OPTIMIZATIONS=on
+ unset SPD XTRA STACK
+ FPM=("None")
+ BOPT=${BOPT//Fastest/Faster}
+ else
+ $DIALOG --defaultno --yes-label "No" --no-label "Yes" --colors --yesno " \Z1*** WARNING ***\n\n\ZnPlease read this carefully. You are about to turn off the optimization safety. This means that you can possibly turn on compiler or linker optimizations that can and will break your box. Not only will the problem most likely occur only days, weeks or months after you turn this switch, but also it can corrupt all your personal data, make your machine unbootable, and cause serious personal distress, headache, loss of vision, heart failure, loss of income, or otherwise very bad things. Before you turn off this option, please think for yourself for a minute and ask yourself: Is it worth it?\n\nOnly use safe optimizations?" 20 70
+ if [ $? == 0 ]; then
+ SAFE_OPTIMIZATIONS=off
+ fi
+ fi
+ ;;
+ bopt)
+ OPTIONS=(
+ "None" "-O0" $( [ "$BOPT" == "None" ] && echo "on" || echo "off" ) "Only default optimizations"
+ "Fast" "-O1" $( [ "$BOPT" == "Fast" ] && echo "on" || echo "off" ) "-O1"
+ "Faster" "-O2" $( [ "$BOPT" == "Faster" ] && echo "on" || echo "off" ) "-O2"
+ )
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ OPTIONS+=(
+ "Fastest" "-O3" $( [ "$BOPT" == "Fastest" ] && echo "on" || echo "off" ) "-O3"
+ "Insane" "-Ofast" $( [ "$BOPT" == "Insane" ] && echo "on" || echo "off" ) "-Ofast"
+ )
+ fi
+ OPTIONS+=(
+ "Small" "-Os" $( [ "$BOPT" == "Small" ] && echo "on" || echo "off" ) "-Os"
+ )
+ menu radiolist "Choose the base compile-time optimization. Most people will use -O2 or -O3. Note that some modules set their own level." &&
+ BOPT=$RESULT
+ ;;
+ cpu)
+ case $PLATFORM in
+ x86)
+ OPTIONS=(
+ "None" "" $( [ ! "$CPU" ] && echo "on" || echo "off" ) "All processor types"
+ "native" "autodetect" $( [ "$CPU" == "native" ] && echo "on" || echo "off" ) "autodetect CPU at compile time - recommended"
+ )
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ OPTIONS+=(
+ "i386" "i386" $( [ "$CPU" == "i386" ] && echo "on" || echo "off" ) "i386 processors"
+ "i486" "i486" $( [ "$CPU" == "i486" ] && echo "on" || echo "off" ) "i486 processors"
+ "i586" "i586 (Pentium)" $( [ "$CPU" == "i586" ] && echo "on" || echo "off" ) "i586 processors, identical to 'pentium'"
+ "pentium-mmx" "pentium-mmx" $( [ "$CPU" == "pentium-mmx" ] && echo "on" || echo "off" ) "Pentium processors with mmx"
+ "i686" "i686 (PentiumPro)" $( [ "$CPU" == "i686" ] && echo "on" || echo "off" ) "i686 processors, identical to 'pentiumpro'"
+ "pentium2" "P2" $( [ "$CPU" == "pentium2" ] && echo "on" || echo "off" ) "Pentium II processors"
+ "pentium3" "P3 (Celeron)" $( [ "$CPU" == "pentium3" ] && echo "on" || echo "off" ) "Pentium III processors"
+ "pentium3m" "P3 mobile (Celeron)" $( [ "$CPU" == "pentium3m" ] && echo "on" || echo "off" ) "Pentium III Mobile processors"
+ "pentium-m" "P3 mobile (Celeron) Low power version" $( [ "$CPU" == "pentium-m" ] && echo "on" || echo "off" ) "Pentium III Mobile processor - low power versions"
+ "pentium4" "P4" $( [ "$CPU" == "pentium4" ] && echo "on" || echo "off" ) "Pentium 4 processors"
+ "pentium4m" "P4 mobile" $( [ "$CPU" == "pentium4m" ] && echo "on" || echo "off" ) "Pentium 4 mobile processors"
+ "core2" "Core 2" $( [ "$CPU" == "core2" ] && echo "on" || echo "off" ) "Intel Core 2 processors"
+ "prescott" "Xeon" $( [ "$CPU" == "prescott" ] && echo "on" || echo "off" ) "Newer Xeons with sse3"
+ "nocona" "nocona" $( [ "$CPU" == "nocona" ] && echo "on" || echo "off" ) "Newer Xeons with sse3 and em64t"
+ "k6" "k6" $( [ "$CPU" == "k6" ] && echo "on" || echo "off" ) "AMD K6 processors"
+ "k6-2" "k6-2" $( [ "$CPU" == "k6-2" ] && echo "on" || echo "off" ) "AMD K6-2 processors"
+ "k6-3" "k6-3" $( [ "$CPU" == "k6-3" ] && echo "on" || echo "off" ) "AMD K6-3 processors"
+ "athlon" "athlon" $( [ "$CPU" == "athlon" ] && echo "on" || echo "off" ) "AMD Athlon processors"
+ "athlon-tbird" "athlon-tbird" $( [ "$CPU" == "athlon-tbird" ] && echo "on" || echo "off" ) "AMD Athlon Thunderbird processors"
+ "athlon-4" "athlon-4" $( [ "$CPU" == "athlon-4" ] && echo "on" || echo "off" ) "AMD Athlon 4 processors"
+ "athlon-xp" "athlon-xp" $( [ "$CPU" == "athlon-xp" ] && echo "on" || echo "off" ) "AMD Athlon XP processors"
+ "athlon-mp" "athlon-mp" $( [ "$CPU" == "athlon-mp" ] && echo "on" || echo "off" ) "AMD athlon MP processors"
+ "k8" "k8" $( [ "$CPU" == "k8" ] && echo "on" || echo "off" ) "AMD K8 processors"
+ "opteron" "opteron" $( [ "$CPU" == "opteron" ] && echo "on" || echo "off" ) "AMD opteron processors"
+ "athlon64" "athlon64" $( [ "$CPU" == "athlon64" ] && echo "on" || echo "off" ) "AMD Athlon 64 processors"
+ "athlon-fx" "athlon-fx" $( [ "$CPU" == "athlon-fx" ] && echo "on" || echo "off" ) "AMD Athlon fx processors"
+ "k8-sse3" "k8-sse3" $( [ "$CPU" == "k8-sse3" ] && echo "on" || echo "off" ) "AMD K8 processors with SSE3"
+ "opteron-sse3" "opteron-sse3" $( [ "$CPU" == "opteron-sse3" ] && echo "on" || echo "off" ) "AMD opteron processors with SSE3"
+ "athlon64-sse3" "athlon64-sse3" $( [ "$CPU" == "athlon64-sse3" ] && echo "on" || echo "off" ) "AMD Athlon 64 processors with SSE3"
+ "amdfam10" "AMD K10 Phenom/new K10 based Opteron family" $( [ "$CPU" == "amdfam10" ] && echo "on" || echo "off" ) "AMD K10 family: Phenom1,2 Athlon2, new Opteron K10 based processors with SSE4A ABM"
+ "barcelona" "barcelona" $( [ "$CPU" == "barcelona" ] && echo "on" || echo "off" ) "AMD K10 family: barcelona core processors with SSE4A ABM"
+ "geode" "geode" $( [ "$CPU" == "geode" ] && echo "on" || echo "off" ) "AMD Geode processors"
+ "winchip-c6" "winchip-c6" $( [ "$CPU" == "winchip-c6" ] && echo "on" || echo "off" ) "IDT Winchip C6 CPU (a 486)"
+ "winchip2" "winchip2" $( [ "$CPU" == "winchip2" ] && echo "on" || echo "off" ) "IDT Winchip2 CPU (a 486)"
+ "c3" "c3" $( [ "$CPU" == "c3" ] && echo "on" || echo "off" ) "Via C3 CPU with MMX and 3dNOW"
+ "c3-2" "c3-2" $( [ "$CPU" == "c3-2" ] && echo "on" || echo "off" ) "Via C3-2 CPU with MMX and SSE"
+ )
+ fi
+ ;;
+ Alpha)
+ OPTIONS=(
+ "None" "" $( [ ! "$CPU" ] && echo "on" || echo "off" ) "All processor types"
+ "ev4" "ev4" $( [ "$CPU" == "ev4" ] && echo "on" || echo "off" ) "Alpha EV4 (21064)"
+ "ev45" "ev45" $( [ "$CPU" == "ev45" ] && echo "on" || echo "off" ) "Alpha EV45 (21064a)"
+ "ev5" "ev5" $( [ "$CPU" == "ev5" ] && echo "on" || echo "off" ) "Alpha EV5 (21164)"
+ "ev56" "ev56" $( [ "$CPU" == "ev56" ] && echo "on" || echo "off" ) "Alpha EV56 (21164a)"
+ "pca56" "pca56" $( [ "$CPU" == "pca56" ] && echo "on" || echo "off" ) "Alpha pca56 (21164PC)"
+ "ev6" "ev6" $( [ "$CPU" == "ev6" ] && echo "on" || echo "off" ) "Alpha EV6 (21264)"
+ "ev67" "ev67" $( [ "$CPU" == "ev67" ] && echo "on" || echo "off" ) "Alpha EV67 (21264a)"
+ "ev68" "ev68" $( [ "$CPU" == "ev68" ] && echo "on" || echo "off" ) "Alpha EV68 (21264b)"
+ )
+ ;;
+ PowerPC)
+ OPTIONS=(
+ "None" "" $( [ ! "$CPU" ] && echo "on" || echo "off" ) "All processor types"
+ "common" "common" $( [ "$CPU" == "common" ] && echo "on" || echo "off" ) "Common PowerPC"
+ "rios" "rios" $( [ "$CPU" == "rios" ] && echo "on" || echo "off" ) "Rios PowerPC"
+ "rios1" "rios1" $( [ "$CPU" == "rios1" ] && echo "on" || echo "off" ) "Rios1 PowerPC"
+ "rsc" "rsc" $( [ "$CPU" == "rsc" ] && echo "on" || echo "off" ) "RSC PowerPC"
+ "rios2" "rios2" $( [ "$CPU" == "rios2" ] && echo "on" || echo "off" ) "Rios2 PowerPC"
+ "rs64a" "rs64a" $( [ "$CPU" == "rs64a" ] && echo "on" || echo "off" ) "RS64a PowerPC"
+ "403" "403" $( [ "$CPU" == "403" ] && echo "on" || echo "off" ) "403 PowerPC"
+ "505" "505" $( [ "$CPU" == "505" ] && echo "on" || echo "off" ) "505 PowerPC"
+ "601" "601" $( [ "$CPU" == "601" ] && echo "on" || echo "off" ) "601 PowerPC"
+ "602" "602" $( [ "$CPU" == "602" ] && echo "on" || echo "off" ) "602 PowerPC"
+ "603" "603" $( [ "$CPU" == "603" ] && echo "on" || echo "off" ) "603 PowerPC"
+ "603a" "603a" $( [ "$CPU" == "603a" ] && echo "on" || echo "off" ) "603a PowerPC"
+ "604" "604" $( [ "$CPU" == "604" ] && echo "on" || echo "off" ) "604 PowerPC"
+ "604e" "604e" $( [ "$CPU" == "604e" ] && echo "on" || echo "off" ) "604e PowerPC"
+ "620" "620" $( [ "$CPU" == "620" ] && echo "on" || echo "off" ) "620 PowerPC"
+ "630" "630" $( [ "$CPU" == "630" ] && echo "on" || echo "off" ) "630 PowerPC"
+ "740" "740" $( [ "$CPU" == "740" ] && echo "on" || echo "off" ) "740 PowerPC"
+ "7400" "7400" $( [ "$CPU" == "7400" ] && echo "on" || echo "off" ) "7400 PowerPC"
+ "7450" "7450" $( [ "$CPU" == "7450" ] && echo "on" || echo "off" ) "7450 PowerPC"
+ "750" "750" $( [ "$CPU" == "750" ] && echo "on" || echo "off" ) "750 PowerPC"
+ "801" "801" $( [ "$CPU" == "801" ] && echo "on" || echo "off" ) "801 PowerPC"
+ "821" "821" $( [ "$CPU" == "821" ] && echo "on" || echo "off" ) "821 PowerPC"
+ "823" "823" $( [ "$CPU" == "823" ] && echo "on" || echo "off" ) "823 PowerPC"
+ "Power" "Power" $( [ "$CPU" == "Power" ] && echo "on" || echo "off" ) "Power PowerPC"
+ "Power2" "Power2" $( [ "$CPU" == "Power2" ] && echo "on" || echo "off" ) "Power2 PowerPC"
+ "PowerPC" "PowerPC" $( [ "$CPU" == "PowerPC" ] && echo "on" || echo "off" ) "IBM and Apple hardware (Power and PowerPC)"
+ )
+ ;;
+ SPARC)
+ OPTIONS=(
+ "None" "" $( [ ! "$CPU" ] && echo "on" || echo "off" ) "All processor types"
+ "v7" "v7" $( [ "$CPU" == "v7" ] && echo "on" || echo "off" ) "V7 SPARC"
+ "cypress" "cypress" $( [ "$CPU" == "cypress" ] && echo "on" || echo "off" ) "Cypress SPARC"
+ "v8" "v8" $( [ "$CPU" == "v8" ] && echo "on" || echo "off" ) "V8 SPARC"
+ "supersparc" "supersparc" $( [ "$CPU" == "supersparc" ] && echo "on" || echo "off" ) "SuperSPARC"
+ "sparclite" "sparclite" $( [ "$CPU" == "sparclite" ] && echo "on" || echo "off" ) "SPARCLite"
+ "hypersparc" "hypersparc" $( [ "$CPU" == "hypersparc" ] && echo "on" || echo "off" ) "HyperSPARC"
+ "sparclite86x" "sparclite86x" $( [ "$CPU" == "sparclite86x" ] && echo "on" || echo "off" ) "SPARCLite86x"
+ "f930" "f930" $( [ "$CPU" == "f930" ] && echo "on" || echo "off" ) "f930 SPARC"
+ "f934" "f934" $( [ "$CPU" == "f934" ] && echo "on" || echo "off" ) "f934 SPARC"
+ "sparclet" "sparclet" $( [ "$CPU" == "sparclet" ] && echo "on" || echo "off" ) "SPARCLet"
+ "tsc701" "tsc701" $( [ "$CPU" == "tsc701" ] && echo "on" || echo "off" ) "tsc701"
+ "v9" "v9" $( [ "$CPU" == "v9" ] && echo "on" || echo "off" ) "V9 SPARC"
+ "ultrasparc" "ultrasparc" $( [ "$CPU" == "ultrasparc" ] && echo "on" || echo "off" ) "ULTRASPARC"
+ )
+ ;;
+ x86_64)
+ OPTIONS=(
+ "None" "" $( [ ! "$CPU" ] && echo "on" || echo "off" ) "All processor types"
+ "native" "autodetect" $( [ "$CPU" == "native" ] && echo "on" || echo "off" ) "autodetect CPU at compile time - recommended"
+ )
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ OPTIONS+=(
+ "x86-64" "x86-64" $( [ "$CPU" == "x86-64" ] && echo "on" || echo "off" ) "Both AMD64 and Intel EM64T machines"
+ "nocona" "nocona" $( [ "$CPU" == "nocona" ] && echo "on" || echo "off" ) "Newer Xeons with sse3 and em64t"
+ "core2" "core2" $( [ "$CPU" == "core2" ] && echo "on" || echo "off" ) "Intel Core2 CPU with em64t SSE3 and SSSE3"
+ "k8" "k8" $( [ "$CPU" == "k8" ] && echo "on" || echo "off" ) "AMD K8 processors"
+ "opteron" "opteron" $( [ "$CPU" == "opteron" ] && echo "on" || echo "off" ) "AMD opteron processors"
+ "athlon64" "athlon64" $( [ "$CPU" == "athlon64" ] && echo "on" || echo "off" ) "AMD Athlon 64 processors"
+ "athlon-fx" "athlon-fx" $( [ "$CPU" == "athlon-fx" ] && echo "on" || echo "off" ) "AMD Athlon fx processors"
+ "k8-sse3" "k8-sse3" $( [ "$CPU" == "k8-sse3" ] && echo "on" || echo "off" ) "AMD K8 processors with SSE3"
+ "opteron-sse3" "opteron-sse3" $( [ "$CPU" == "opteron-sse3" ] && echo "on" || echo "off" ) "AMD opteron processors with SSE3"
+ "athlon64-sse3" "athlon64-sse3" $( [ "$CPU" == "athlon64-sse3" ] && echo "on" || echo "off" ) "AMD Athlon 64 processors with SSE3"
+ "amdfam10" "AMD K10 family Phenom/new K10 based Opteron" $( [ "$CPU" == "amdfam10" ] && echo "on" || echo "off" ) "AMD K10 family: Phenom1,2 Athlon2, new Opteron K10 family processors with SSE4A ABM"
+ "barcelona" "barcelona" $( [ "$CPU" == "barcelona" ] && echo "on" || echo "off" ) "AMD K10 family: barcelona core processors with SSE4A ABM"
+ )
+ fi
+ ;;
+ esac
+ menu radiolist "CPU, according to the kernel you have a$(cat /proc/cpuinfo | grep 'model name' | cut -d: -f2 | head -n 1). If you are unsure, use autodetect - anything other is not safe." &&
+ CPU=$RESULT
+ ;;
+ spd)
+ # safe list derived from `gcc -c -Q -O2 --help=optimizers`
+ OPTIONS=(
+ "Pointers" "-fomit-frame-pointer" $( echo ${SPD[@]} | grep -q "Pointers" && echo "on" || echo "off" ) "Optimize by omitting frame pointers"
+ "Siblings" "-foptimize-sibling-calls" $( echo ${SPD[@]} | grep -q "Siblings" && echo "on" || echo "off" ) "Optimize sibling calls"
+ "Aliasing" "-fstrict-aliasing" $( echo ${SPD[@]} | grep -q "Aliasing" && echo "on" || echo "off" ) "Enable strict aliasing (enabled by default -O1 and above)"
+ "Align" "-falign-functions" $( echo ${SPD[@]} | grep -q "Align" && echo "on" || echo "off" ) "Align functions, loops, and jumps"
+ "Expensive" "-fexpensive-optimizations" $( echo ${SPD[@]} | grep -q "Expensive" && echo "on" || echo "off" ) "Perform expensive optimizations"
+ "Blocks" "-freorder-blocks" $( echo ${SPD[@]} | grep -q "Blocks" && echo "on" || echo "off" ) "Reorder basic blocks in order to reduce number of taken branches."
+ )
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ OPTIONS+=(
+ "Speedy" "-funroll-loops" $( echo ${SPD[@]} | grep -q "Speedy" && echo "on" || echo "off" ) "Optimize to increase performance of generated code"
+ "Regparm" "-mregparm=3" $( echo ${SPD[@]} | grep -q "Regparm" && echo "on" || echo "off" ) "Pass up to 3 function arguments in registers instead of stack"
+ "Risky" "-ffast-math" $( echo ${SPD[@]} | grep -q "Risky" && echo "on" || echo "off" ) "Optimize to increase performance ... by violating ANSI and IEEE FP rules"
+ "Profiling" "-fprofile-arcs" $( echo ${SPD[@]} | grep -q "Profiling" && echo "on" || echo "off" ) "Generate profiles (For later use with Branching)"
+ "Branching" "-fbranching-probabilities" $( echo ${SPD[@]} | grep -q "Branching" && echo "on" || echo "off" ) "Predict branching (For using profiled sources)"
+ "Cprop" "-fno-cprop-registers" $( echo ${SPD[@]} | grep -q "Cprop" && echo "on" || echo "off" ) "Reduce scheduling dependencies and remove copies"
+ "Float" "-ffloat-store" $( echo ${SPD[@]} | grep -q "Float" && echo "on" || echo "off" ) "Enable float store"
+ "Address" "-fforce-addr" $( echo ${SPD[@]} | grep -q "Address" && echo "on" || echo "off" ) "Force memory address"
+ "Doubles" "-malign-double" $( echo ${SPD[@]} | grep -q "Doubles" && echo "on" || echo "off" ) "Align double, long double, and long long on two word boundaries"
+ "Tracer" "-ftracer" $( echo ${SPD[@]} | grep -q "Tracer" && echo "on" || echo "off" ) "Perform tail duplication to enlarge superblock size."
+ )
+ fi
+ menu checklist "Select additional flags to optimize specific areas of the created code. Note that some of these flags are turned on automatically with -O2 or -O3. See 'man gcc' for more information." &&
+ SPD=($RESULT)
+ ;;
+ fpm)
+ OPTIONS=(
+ "None" "Use compiler default" $([ "$FPM" == "None" ] && echo "on" || echo "off" ) "Use compiler default"
+ )
+ case $PLATFORM in
+ x86|x86_64)
+ if grep '^fpu' /proc/cpuinfo | grep -qw yes; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "x387" "Floating point coprocessor" $([ "$FPM" == "x387" ] && echo "on" || echo "off" ) "Classic 387 or higher Floating Point Co-Processor"
+ )
+ fi
+ if grep -qw sse /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE" "Streaming SIMD Extensions" $([ "$FPM" == "SSE" ] && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data)"
+ )
+ fi
+ if grep '^fpu' /proc/cpuinfo | grep -qw yes; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "Both" "x387 and SSE" $([ "$FPM" == "Both" ] && echo "on" || echo "off" ) "Both SSE and 387"
+ )
+ fi
+ ;;
+ PowerPC)
+ if grep -qw altivec /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "Altivec" "PowerPC only" $([ "$FPM" == "Altivec" ] && echo "on" || echo "off" ) "Altivec"
+ )
+ fi
+ ;;
+ esac
+ unset FLAGS
+ for EXT in fpu sse altivec ; do
+ if grep -qw "$EXT" /proc/cpuinfo ; then
+ FLAGS="$FLAGS $EXT"
+ fi
+ done
+ FLAGS=${FLAGS/fpu/387}
+ FLAGS=${FLAGS/387 sse/387 and sse (both)}
+ menu radiolist "Select available Floating Point Math compile extensions. The kernel reports that this system has: $FLAGS." &&
+ FPM=$RESULT
+ ;;
+ xtra)
+ unset OPTIONS
+ case $PLATFORM in
+ x86|x86_64)
+ if grep -qw mmx /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "MMX" "MMX" $( echo ${XTRA[@]} | grep -q "MMX" && echo "on" || echo "off" ) "Multi-Media instruction code eXtensions"
+ )
+ fi
+ if grep -qw sse /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE" "SSE" $( echo ${XTRA[@]} | grep -q "SSE" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions"
+ )
+ fi
+ if grep -qw sse2 /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE2" "SSE2" $( echo ${XTRA[@]} | grep -q "SSE2" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions v2"
+ )
+ fi
+ if grep -qw pni /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE3" "SSE3" $( echo ${XTRA[@]} | grep -q "SSE3" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions v3"
+ )
+ fi
+ if grep -qw ssse3 /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSSE3" "SSSE3" $( echo ${XTRA[@]} | grep -q "SSSE3" && echo "on" || echo "off" ) "Supplemental Streaming SIMD (Single Instruction, Multiple Data) Extensions v3"
+ )
+ fi
+ if grep -qw sse4_1 /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE4.1" "SSE4.1" $( echo ${XTRA[@]} | grep -q "SSE4.1" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions v4 part 1"
+ )
+ fi
+ if grep -qw sse4_2 /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE4.2" "SSE4.2" $( echo ${XTRA[@]} | grep -q "SSE4.2" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions v4 part 2"
+ )
+ fi
+ if grep -qw sse4_1\ sse4_2 /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE4" "SSE4" $( echo ${XTRA[@]} | grep -q "SSE4" && echo "on" || echo "off" ) "Streaming SIMD (Single Instruction, Multiple Data) Extensions v4 full: part 1 + part 2"
+ )
+ fi
+ if grep -qw 3dnow /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "3dnow" "3dnow" $( echo ${XTRA[@]} | grep -q "3dnow" && echo "on" || echo "off" ) "3dnow"
+ )
+ fi
+ if grep -qw popcnt /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "popcnt" "popcnt" $( echo ${XTRA[@]} | grep -q "popcnt" && echo "on" || echo "off" ) "population count mnemonic"
+ )
+ fi
+ if grep -qw sse4a /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "SSE4A" "SSE4A" $( echo ${XTRA[@]} | grep -q "SSE4A" && echo "on" || echo "off" ) "AMD Streaming SIMD (Single Instruction, Multiple Data) Extensions v4"
+ )
+ fi
+ if grep -qw abm /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "ABM" "ABM" $( echo ${XTRA[@]} | grep -q "ABM" && echo "on" || echo "off" ) "AMD Advanced Bit Manipulation"
+ )
+ fi
+ ;;
+ PowerPC)
+ if grep -qw altivec /proc/cpuinfo; then
+ OPTIONS=(
+ "Altivec" "Altivec" $( echo ${XTRA[@]} | grep -q "Altivec" && echo "on" || echo "off" ) "Altivec"
+ )
+ fi
+ ;;
+ esac
+ unset FLAGS
+ for EXT in mmx sse sse2 pni 3dnow altivec popcnt sse4a abm ssse3 sse4_1 sse4_2 sse4_1\ sse4_2; do
+ if grep -qw "$EXT" /proc/cpuinfo ; then
+ echo $EXT
+ FLAGS="$FLAGS $EXT"
+ fi
+ done
+ FLAGS=${FLAGS/pni/sse3}
+ FLAGS=${FLAGS/sse4_1\ sse4_2/sse4}
+ menu checklist "Select compiler use of extra instruction sets. The kernel reports that this system has: $FLAGS. None of these are safe." &&
+ XTRA=($RESULT)
+ ;;
+ cc_opt)
+ OPTIONS=(
+ "Deprecated" "-Wno-deprecated for C++" $( echo ${CC_OPTS[@]} | grep -qw "Deprecated" && echo "on" || echo "off" ) "Disable warnings of deprecated symbols in C++"
+ "Debug" "-g" $( echo ${CC_OPTS[@]} | grep -qw "Debug" && echo "on" || echo "off" ) "Add debug symbols"
+ "Pipe" "-pipe (RECOMMENDED)" $( echo ${CC_OPTS[@]} | grep -qw "Pipe" && echo "on" || echo "off" ) "Enable cc to use named pipes."
+ )
+ if [ "$SAFE_OPTIMIZATIONS" == "off" ]; then
+ OPTIONS+=(
+ "Fortify" "-D_FORTIFY_SOURCE=2" $( echo ${CC_OPTS[@]} | grep -qw "Fortify" && echo "on" || echo "off" ) "Gcc Stack protector checking"
+ "StackProt" "-fstack-protector" $( echo ${CC_OPTS[@]} | grep -qw "StackProt" && echo "on" || echo "off" ) "Gcc Stack protector checking (UNSAFE)"
+ )
+ fi
+ menu checklist "General C/C++ compiler settings" &&
+ CC_OPTS=($RESULT)
+ ;;
+ stack)
+ STACK=`$DIALOG --nocancel --inputbox "Enter the number to set the stack to, leave empty for default. Only used on x86 platform. Not safe" 0 55 $STACK`
+ ;;
+ esac
+ done
+
+ save_optimizations
+}
+
+
+plugin_register BUILD_BUILD plugin_compiler_gcc_4_6_optimize
+plugin_register OPTIMIZE_MENU plugin_compiler_gcc_4_6_menu
+
19 compilers/nasm/DETAILS
@@ -0,0 +1,19 @@
+ MODULE=nasm
+ VERSION=2.09.10
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL=http://www.nasm.us/pub/nasm/releasebuilds/$VERSION
+ SOURCE_VFY=sha1:ca57a7454b29e18c64018e49cdf5c832937497ab
+ WEB_SITE=http://nasm.sourceforge.net
+ ENTERED=20010922
+ UPDATED=20110722
+ SHORT="The netwide assembler"
+
+cat << EOF
+NASM is an 80x86 assembler designed for portability and modularity. It supports
+a range of object file formats including Linux a.out and ELF, COFF, Microsoft
+16-bit OBJ and Win32. It will also output plain binary files. Its syntax is
+designed to be simple and easy to understand, similar to Intel's but less
+complex. It supports Pentium, P6, MMX, 3DNow! and SSE opcodes, and has macro
+capability. It includes a disassembler as well. Now with full 64-bit
+(x86-64/x64/AMD64/Intel 64) architecture and object file support.
+EOF
18 compilers/yasm/DETAILS
@@ -0,0 +1,18 @@
+ MODULE=yasm
+ VERSION=1.2.0
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL=http://www.tortall.net/projects/$MODULE/releases/
+ SOURCE_VFY=sha1:773d28f27f83c44ac35079add0d3167ca6c1def8
+ WEB_SITE=http://www.tortall.net/projects/yasm
+ ENTERED=20051007
+ UPDATED=20111116
+ SHORT="A complete rewrite of the NASM assembler"
+
+cat << EOF
+Yasm is a complete rewrite of the NASM assembler under the "new" BSD License
+(some portions are under other licenses, see COPYING for details). It is
+designed from the ground up to allow for multiple assembler syntaxes to be
+supported (eg, NASM, TASM, GAS, etc.) in addition to multiple output object
+formats and even multiple instruction sets. Another primary module of the
+overall design is an optimizer module.
+EOF
31 crypto/openssh/BUILD
@@ -0,0 +1,31 @@
+(
+
+ # don't allow root login by default
+ sedit 's/#PermitRootLogin yes/PermitRootLogin no/' sshd_config &&
+
+ if ! [ -d /var/empty ]; then
+ mkdir -p /var/empty
+ chown root:sys /var/empty
+ chmod 755 /var/empty
+ fi &&
+
+ add_priv_user sshd:sshd &&
+
+# if echo $OPTS | grep -q -- "--with-kerberos5="; then
+# patch_it $SOURCE2 1
+# if [[ "$KEX" == "y" ]]; then
+# patch_it $SOURCE3 0
+# fi
+# fi &&
+
+ OPTS=$OPTS" --sysconfdir=/etc/ssh --with-md5-passwords" &&
+ default_build &&
+ if [ ! -f /etc/ssh/Makefile ] ; then
+ install -m644 $SCRIPT_DIRECTORY/Makefile /etc/ssh/Makefile
+ fi &&
+
+ # install ssh-copy-id script and man page
+ install -Dm755 {contrib,/usr/bin}/ssh-copy-id &&
+ install -Dm644 {contrib,/usr/share/man/man1}/ssh-copy-id.1
+
+) > $C_FIFO 2>&1
1  crypto/openssh/CONFIGURE
@@ -0,0 +1 @@
+#mquery KEX "Patch openssh with kex patch (NOT RECOMMENDED)?" n
19 crypto/openssh/DEPENDS
@@ -0,0 +1,19 @@
+depends zlib
+depends openssl
+depends coreutils
+depends psmisc
+
+optional_depends "tcp_wrappers" \
+ "--with-tcp-wrappers" \
+ "" \
+ "for an optional method of controlling ssh access"
+
+optional_depends "Linux-PAM" \
+ "--with-pam" \
+ "--without-pam" \
+ "for Linux PAM support"
+
+optional_depends heimdal \
+ "--with-kerberos5=/usr" \
+ "" \
+ "Heimdal Kerberos5/GSSAPI Support"
26 crypto/openssh/DETAILS
@@ -0,0 +1,26 @@
+ MODULE=openssh
+ VERSION=5.9p1
+ SOURCE=$MODULE-$VERSION.tar.gz
+# SOURCE2=openssh-heimdal_no_des.patch.gz
+# SOURCE3=openssh-$VERSION-gsskex-20080404.patch
+ SOURCE_URL[1]=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable
+ SOURCE_URL[2]=ftp://ftp5.usa.openbsd.org/pub/OpenBSD/OpenSSH/portable
+ SOURCE_URL[3]=ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable
+ SOURCE_VFY=sha1:ac4e0055421e9543f0af5da607a72cf5922dcc56
+# SOURCE2_URL=$PATCH_URL
+# SOURCE2_VFY=sha1:0e2228ba4564980fe0f60235559090ea7ba8c8f8
+# SOURCE3_URL[0]=http://www.sxw.org.uk/computing/patches
+# SOURCE3_URL[1]=$PATCH_URL
+# SOURCE3_VFY=sha1:41dfe293b3a3c08163cd43926fefabd321f0c37f
+ WEB_SITE=http://www.openssh.com
+ ENTERED=20010922
+ UPDATED=20110909
+ SHORT="Client and server for encrypted remote logins and file transfers"
+
+cat << EOF
+The OpenSSH suite includes the ssh program which replaces rlogin and telnet,
+scp which replaces rcp, and sftp which replaces ftp. Also included is sshd
+which is the server side of the package, and the other basic utilities like
+ssh-add, ssh-agent, ssh-keysign, ssh-keyscan, ssh-keygen and sftp-server.
+OpenSSH supports SSH protocol versions 1.3, 1.5, and 2.0.
+EOF
38 crypto/openssh/Makefile
@@ -0,0 +1,38 @@
+.PHONY: usage
+.SUFFIXES: .key .csr .crt .pem
+.PRECIOUS: %.key %.csr %.crt %.pem
+
+usage:
+ @echo "This makefile allows you to create:"
+ @echo " o ssh v1 server key pairs"
+ @echo " o ssh v2 dsa server key pairs"
+ @echo " o ssh v2 rsa server key pairs"
+ @echo " o public/private key pairs"
+ @echo ""
+ @echo "To create all server key pairs, run \"make server-keys\"."
+ @echo ""
+ @echo "To create a public/private key pair, run \"make SOMENAME.key\""
+ @echo
+ @echo
+ @echo Examples:
+ @echo " make private.key"
+ @echo " make server-keys"
+
+%.key:
+ umask 77 ; \
+ ssh-keygen -t dsa -f $@
+
+ssh_host_dsa_key:
+ umask 77 ; \
+ ssh-keygen -t dsa -N '' -f ssh_host_dsa_key
+
+ssh_host_rsa_key:
+ umask 77 ; \
+ ssh-keygen -t rsa -N '' -f ssh_host_rsa_key
+
+ssh_host_key:
+ umask 77 ; \
+ ssh-keygen -t rsa1 -N '' -f ssh_host_key
+
+server-keys: ssh_host_key ssh_host_rsa_key ssh_host_dsa_key
+
1  crypto/openssh/POST_INSTALL
@@ -0,0 +1 @@
+cd /etc/ssh && make server-keys
11 crypto/openssh/init.d/sshd
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# ssh Secure Shell Daemon
+#
+# chkconfig: 345 80 20
+# description: SSH daemon
+# processname: sshd
+# config: /etc/ssh/sshd_config
+
+. /lib/lsb/init-functions
+
8 crypto/openssh/pam.d/sshd
@@ -0,0 +1,8 @@
+#%PAM-1.0
+auth include system-auth
+account required pam_nologin.so
+account include system-auth
+password include system-auth
+session include system-auth
+# Uncomment the following line only if you run kernel 2.6.11 or above
+#session required pam_loginuid.so
13 crypto/openssh/profile.d/ssh-completion.rc
@@ -0,0 +1,13 @@
+# Turn on extended globbing
+shopt -s extglob
+
+# ssh hostname completion
+
+_ssh ()
+{
+ local cur
+ cur=${COMP_WORDS[COMP_CWORD]}
+ COMPREPLY=( $( compgen -W "`cat $HOME/.ssh/known_hosts | cut -d' ' -f1 | sed 's:,: :g'`" $cur ) )
+}
+complete -F _ssh ssh
+
2  crypto/openssh/services
@@ -0,0 +1,2 @@
+ssh 22/tcp
+ssh 22/udp
13 crypto/openssh/systemd.d/sshd-keys.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Create sshd host keys (one time service only)
+ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
+ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/make -C /etc/ssh server-keys
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+
14 crypto/openssh/systemd.d/sshd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=OpenSSH Daemon - daemon version
+After=syslog.target
+
+[Service]
+ExecStart=/usr/sbin/sshd -D
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=always
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target
+
10 crypto/openssh/systemd.d/sshd.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=SSH Per-Connection Server - no daemon version
+Conflicts=sshd.service
+
+[Socket]
+ListenStream=22
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
11 crypto/openssh/systemd.d/sshd@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=SSH Per-Connection Server - no daemon version
+After=syslog.target
+
+[Service]
+ExecStart=-/usr/sbin/sshd -i
+ExecReload=/bin/kill -HUP $MAINPID
+StandardInput=socket
+
+[Install]
+WantedBy=network.target
25 crypto/openssl/BUILD
@@ -0,0 +1,25 @@
+(
+
+ # make sure the luser has the source for this one!
+ download_module wget &&
+
+# Enable MD2 (for nmap)
+ sedit "s/ -DOPENSSL_NO_MD2//" Configure &&
+ sedit 's/"md2"/"rc5"/' Configure &&
+
+ ./config --prefix=/usr \
+ --openssldir=/etc/ssl \
+ shared \
+ $OPTS &&
+
+ sedit "/^CC/d" Makefile &&
+ sedit "s/-m486//g" Makefile &&
+ sedit "s/-O3/-Os/" Makefile &&
+ sedit "s/^CFLAG=/CFLAG=$CFLAGS /g" Makefile &&
+
+ make &&
+ prepare_install &&
+ make MANDIR=/usr/share/man install &&
+ cp $SOURCE_CACHE/$SOURCE2 /etc/ssl/certs/Makefile
+
+) > $C_FIFO 2>&1
4 crypto/openssl/DEPENDS
@@ -0,0 +1,4 @@
+depends perl
+depends pkgconfig
+
+optional_depends "ca-certificates" "" "" "for a basic set of CA certificates"
32 crypto/openssl/DETAILS
@@ -0,0 +1,32 @@
+ MODULE=openssl
+ VERSION=1.0.0g
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE2=Makefile.openssl-certs
+ SOURCE_URL[0]=http://www.openssl.org/source
+ SOURCE_URL[1]=ftp://opensores.thebunker.net/pub/mirrors/openssl/source
+ SOURCE_URL[2]=http://www.dentarthurdent.com/transfer/openssl
+ SOURCE_URL[3]=ftp://ftp.infoscience.co.jp/pub/Crypto/SSL/openssl/source
+ SOURCE_URL[4]=ftp://ftp.duth.gr/pub/OpenSSL/source
+ SOURCE_VFY=sha1:2b517baada2338663c27314cb922f9755e73e07f
+ SOURCE2_URL=$PATCH_URL
+ SOURCE2_VFY=sha1:0f30d44c0bf27883876bdf56fe9c541ee28bc2cd
+ WEB_SITE=http://www.openssl.org
+ ENTERED=20010922
+ UPDATED=20120118
+ PSAFE="no"
+ SHORT="A library for providing encrypted transport layers"
+
+cat << EOF
+The OpenSSL Project is a collaborative effort to develop a robust,
+commercial-grade, full-featured, and Open Source toolkit implementing
+the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
+v1) protocols as well as a full-strength general purpose cryptography
+library. The project is managed by a worldwide community of volunteers
+that use the Internet to communicate, plan, and develop the OpenSSL
+toolkit and its related documentation.
+OpenSSL is based on the excellent SSLeay library developed by Eric A.
+Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
+Apache-style licence, which basically means that you are free to get and
+use it for commercial and non-commercial purposes subject to some simple
+license conditions.
+EOF
13 crypto/openssl/POST_INSTALL
@@ -0,0 +1,13 @@
+# Remove of gcc internal header is necessary as it "fixes" its own
+# copy of the bn.h include files. This will allow gcc to correctly
+# recompile an openssl app.
+
+rm -rf /usr/lib/gcc-lib/*/$(installed_version gcc)/include/openssl &> /dev/null
+
+# Has to be done BEFORE anything else
+lunar fix wget
+
+# Recent openssl changes may break ssh undetectable to lunar fix
+lin -c openssh
+
+lunar fix $(lvu depends openssl)
2  devel/autoconf/DEPENDS
@@ -0,0 +1,2 @@
+depends perl
+depends m4
22 devel/autoconf/DETAILS
@@ -0,0 +1,22 @@
+ MODULE=autoconf
+ VERSION=2.68
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL[0]=$GNU_URL/$MODULE
+ SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
+ SOURCE_VFY=sha1:b534c293b22048c022b1ff3a372b9c03f26170b4
+ WEB_SITE=http://www.gnu.org/software/autoconf
+ ENTERED=20010922
+ UPDATED=20100923
+ SHORT="Produces shell scripts which configure source code"
+ PSAFE=no
+
+cat << EOF
+autoconf - Produces shell scripts which automatically configure source
+code Extensible package of M4 macros that produce shell scripts to
+automatically configure software source code packages. These scripts can
+adapt the packages to many kinds of UNIX-like systems without manual
+user intervention. Autoconf requires GNU M4. You must install GNU M4
+before configuring autoconf, so that Autoconf's configure script can
+find it. The configuration scripts produced by autoconf are
+self-contained, so their users do not need to have autoconf or GNU M4.
+EOF
9 devel/automake/BUILD
@@ -0,0 +1,9 @@
+(
+
+ default_build &&
+
+ #the line below is for the "automake" symlink, needed by some sources
+ rm -Rf /usr/share/automake &&
+ ln -sf /usr/share/automake-${MAJOR} /usr/share/automake
+
+) > $C_FIFO 2>&1
1  devel/automake/DEPENDS
@@ -0,0 +1 @@
+depends autoconf
26 devel/automake/DETAILS
@@ -0,0 +1,26 @@
+ MODULE=automake
+ MAJOR=1.11
+ VERSION=${MAJOR}.3
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL[0]=$GNU_URL/$MODULE
+ SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
+ SOURCE_URL[2]=ftp://sources.redhat.com/pub/$MODULE
+ SOURCE_VFY=sha1:537f5964bb7ec7d0df6544e3d10d9631fe7460f0
+ WEB_SITE=http://www.gnu.org/software/automake
+ ENTERED=20010922
+ UPDATED=20120204
+ SHORT="Generate GNU coding standards compliant Makefiles"
+
+cat << EOF
+automake - Generates Makefile.in files
+Automake automatically generates make files compliant with the GNU
+coding standards. It was inspired by the 4.4 BSD make and include files,
+but aims to be portable and to confrom to the GNU standards for Make
+file variables and targets. Automake is a Perl script.
+The input files are called Makefile.am; the output files are called
+Makefile.in. They are intended for use with autoconf. Automake requires
+certain things to be done in your configure.in.
+This package also includes the aclocal program, which generates an
+aclocal.m4 based on the contents of configure.in. It is useful as an
+extensible, maintainable mechanism for augmenting autoconf.
+EOF
16 devel/binutils/BUILD
@@ -0,0 +1,16 @@
+(
+
+ ./configure --prefix=/usr \
+ $OPTS &&
+
+ make tooldir=/usr &&
+ prepare_install &&
+ make tooldir=/usr install &&
+ make tooldir=/usr install-info &&
+ mkdir -p $DOCUMENT_DIRECTORY/binutils &&
+ cp -p binutils/NEWS binutils/ChangeLog $DOCUMENT_DIRECTORY/binutils
+
+ # For some reason installwatch fail to pick up the ld hardlink, touching it solves that issue
+ [ -e /usr/bin/ld ] && touch /usr/bin/ld
+
+) > $C_FIFO 2>&1
22 devel/binutils/BUILD.sparc64
@@ -0,0 +1,22 @@
+(
+
+ #Somehow I believe this might/should be logged as a bug to the glibc guys...
+ sedit 's/^all: all-redirect/all: all-redirect $(MKDOC)/' \
+ bfd/doc/Makefile.in &&
+
+ ./configure --host=$BUILD \
+ --target=sparc-linux \
+ --prefix=/usr \
+ $OPTS &&
+
+ make tooldir=/usr &&
+ prepare_install &&
+ make tooldir=/usr install &&
+ make tooldir=/usr install-info &&
+ mkdir -p $DOCUMENT_DIRECTORY/binutils &&
+ cp -p binutils/NEWS binutils/ChangeLog $DOCUMENT_DIRECTORY/binutils
+
+ # For some reason installwatch fail to pick up the ld hardlink, touching it solves that issue
+ [ -e /usr/bin/ld ] && touch /usr/bin/ld
+
+) > $C_FIFO 2>&1
16 devel/binutils/BUILD.x86_64
@@ -0,0 +1,16 @@
+(
+
+ ./configure --prefix=/usr \
+ $OPTS &&
+
+ make tooldir=/usr &&
+ prepare_install &&
+ make tooldir=/usr install &&
+ make tooldir=/usr install-info &&
+ mkdir -p $DOCUMENT_DIRECTORY/binutils &&
+ cp -p binutils/NEWS binutils/ChangeLog $DOCUMENT_DIRECTORY/binutils
+
+ # For some reason installwatch fail to pick up the ld hardlink, touching it solves that issue
+ [ -e /usr/bin/ld ] && touch /usr/bin/ld
+
+) > $C_FIFO 2>&1
2  devel/binutils/DEPENDS
@@ -0,0 +1,2 @@
+depends flex
+depends zlib
28 devel/binutils/DETAILS
@@ -0,0 +1,28 @@
+ MODULE=binutils
+ VERSION=2.22
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE_URL[0]=$GNU_URL/$MODULE
+ SOURCE_URL[1]=ftp://ftp.gnu.org/pub/gnu/$MODULE
+ SOURCE_VFY=sha1:65b304a0b9a53a686ce50a01173d1f40f8efe404
+ WEB_SITE=http://sources.redhat.com/binutils
+ ENTERED=20010922
+ UPDATED=20111121
+ SHORT="An essential collection of binary utilities"
+
+cat << EOF
+binutils - Collection of binary utilities
+ld -the GNU linker
+as -the portable GNU assembler
+ar -creates, modifies, and extracts from archives
+nm -lists symbols from object files
+objcopy -copies and translates object files
+objdump -displays information from object files
+ranlib -indexes the contents of an archive
+size -lists the section sizes of an object or archive file
+strings -lists printable strings from files
+strip -discards symbols
+c++filt -filter to demangle encoded C++ symbols
+addr2line -converts addresses to file and line
+nlmconv -converts object code into an NLM
+EOF
+
7 devel/binutils/POST_REMOVE
@@ -0,0 +1,7 @@
+install-info --delete as --info-dir /usr/info
+install-info --delete bfd --info-dir /usr/info
+install-info --delete binutils --info-dir /usr/info
+install-info --delete configure --info-dir /usr/info
+install-info --delete gprof --info-dir /usr/info
+install-info --delete ld --info-dir /usr/info