summaryrefslogtreecommitdiff
path: root/misc/bogosort
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-09-16 05:15:36 +0000
committerWill Andrews <will@FreeBSD.org>2000-09-16 05:15:36 +0000
commit59a5f42547b7bfd291dda7679ea1b30379daaef9 (patch)
tree5e8081600bda29512cdb0f6612607df61e8c8a16 /misc/bogosort
parentAdd vorbis date 20000821, featuring an encoder, player, various shell (diff)
Add bogosort 0.3.1, a program that sorts files (or stdin) using the
bogo-sort algorithm described in the Jargon File. PR: 21290 Submitted by: Peter Pentchev <roam@orbitel.bg>
Notes
Notes: svn path=/head/; revision=32676
Diffstat (limited to 'misc/bogosort')
-rw-r--r--misc/bogosort/Makefile25
-rw-r--r--misc/bogosort/distinfo1
-rw-r--r--misc/bogosort/files/patch-aa13
-rw-r--r--misc/bogosort/pkg-comment1
-rw-r--r--misc/bogosort/pkg-descr19
-rw-r--r--misc/bogosort/pkg-plist4
6 files changed, 63 insertions, 0 deletions
diff --git a/misc/bogosort/Makefile b/misc/bogosort/Makefile
new file mode 100644
index 000000000000..e0b33229ae7a
--- /dev/null
+++ b/misc/bogosort/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: bogosort
+# Date created: 15 September 2000
+# Whom: roam@orbitel.bg
+#
+# $FreeBSD$
+#
+
+PORTNAME= bogosort
+PORTVERSION= 0.3.1
+CATEGORIES= misc
+MASTER_SITES= http://www.lysator.liu.se/~qha/bogosort/ \
+ ftp://l82.ryd.student.liu.se/pub/unix/bogosort/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= roam@orbitel.bg
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+GNU_CONFIGURE= yes
+USE_AUTOMAKE= yes
+USE_GMAKE= yes
+
+MAN1= bogosort.1
+
+.include <bsd.port.mk>
diff --git a/misc/bogosort/distinfo b/misc/bogosort/distinfo
new file mode 100644
index 000000000000..4f914075b157
--- /dev/null
+++ b/misc/bogosort/distinfo
@@ -0,0 +1 @@
+MD5 (bogosort.tar.gz) = 80a8f3f29949802f6a7e75fa8d3237ef
diff --git a/misc/bogosort/files/patch-aa b/misc/bogosort/files/patch-aa
new file mode 100644
index 000000000000..78bc86143a2c
--- /dev/null
+++ b/misc/bogosort/files/patch-aa
@@ -0,0 +1,13 @@
+--- bogosort.texinfo 2000/09/15 13:16:16 1.1
++++ bogosort.texinfo 2000/09/15 13:35:49 1.2
+@@ -2,6 +2,10 @@
+ @c %**start of header
+ @setfilename bogosort.info
+ @settitle sorts or doesn't sort files or its standard input
++@dircategory Miscellaneous
++@direntry
++* Bogosort: (bogosort). Sort (or not) files (or standard input)
++@end direntry
+ @finalout
+ @setchapternewpage odd
+ @c %**end of header
diff --git a/misc/bogosort/pkg-comment b/misc/bogosort/pkg-comment
new file mode 100644
index 000000000000..0dc2765d762e
--- /dev/null
+++ b/misc/bogosort/pkg-comment
@@ -0,0 +1 @@
+Sort (or not) stdin using the bogo-sort algorithm
diff --git a/misc/bogosort/pkg-descr b/misc/bogosort/pkg-descr
new file mode 100644
index 000000000000..9eec89fd8a3f
--- /dev/null
+++ b/misc/bogosort/pkg-descr
@@ -0,0 +1,19 @@
+Sort files or its standard input using the bogo-sort algorithm
+described in the Jargon File <http://www.tuxedo.org/~esr/jargon>.
+
+A quote from the Jargon File 'bogo-sort' entry:
+
+ ...The archetypical perversely awful algorithm (as opposed to
+ _bubble sort_, which is merely the generic bad algorithm).
+ _Bogo-sort_ is equivalent to repeatedly throwing a deck of cards
+ in the air, picking them up at random, and then testing whether
+ they are in order. It serves as a sort of canonical example of
+ awfulness. Looking at a program and seeing a dumb algorithm, one
+ might say "Oh, I see, this program uses _bogo-sort_." Esp.
+ appropriate for algorithms with factorial or super-exponential
+ running time in the average case and probabilistically infinite
+ worst-case running time. Compare _bogus_, _brute force_,
+ _lasherism_...
+
+Author: Ulrik Haugen <qha@lysator.liu.se>
+WWW: http://www.lysator.liu.se/~qha/bogosort/
diff --git a/misc/bogosort/pkg-plist b/misc/bogosort/pkg-plist
new file mode 100644
index 000000000000..bf96d04d827e
--- /dev/null
+++ b/misc/bogosort/pkg-plist
@@ -0,0 +1,4 @@
+bin/bogosort
+@unexec install-info --delete %D/info/bogosort.info %D/info/dir
+info/bogosort.info
+@exec install-info %D/info/bogosort.info %D/info/dir