xlock.paketlendi
This commit is contained in:
parent
6871e23a13
commit
e095b864ca
|
@ -0,0 +1,39 @@
|
||||||
|
diff -Nru fortune-0.2/fortune.c fortune-0.2-new/fortune.c
|
||||||
|
--- fortune-0.2/fortune.c 1998-10-25 01:05:19.000000000 +0200
|
||||||
|
+++ fortune-0.2-new/fortune.c 2002-09-15 18:46:36.000000000 +0200
|
||||||
|
@@ -30,7 +30,7 @@
|
||||||
|
#warn Your system headers say that mmap is not supported!
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#define VERSION "0.1"
|
||||||
|
+#define VERSION "0.2"
|
||||||
|
#define FORTUNEDIR "/usr/share/games/fortunes"
|
||||||
|
|
||||||
|
struct option const long_options[] =
|
||||||
|
@@ -38,6 +38,8 @@
|
||||||
|
{"help", no_argument, 0, 'h'},
|
||||||
|
{"help", no_argument, 0, '?'},
|
||||||
|
{"match", required_argument, 0, 'm'},
|
||||||
|
+ {"set", no_argument, 0, 's'},
|
||||||
|
+ {"out", no_argument, 0, 'o'},
|
||||||
|
{"version", no_argument, 0, 'V'},
|
||||||
|
{(char *)0, 0, 0, (char)0}
|
||||||
|
};
|
||||||
|
@@ -140,7 +142,7 @@
|
||||||
|
char *re;
|
||||||
|
|
||||||
|
progname=argv[0]; re=NULL;
|
||||||
|
- while ((c = getopt_long(argc, argv, "h?m:V",
|
||||||
|
+ while ((c = getopt_long(argc, argv, "h?som:V",
|
||||||
|
long_options, (int *) 0)) != EOF) {
|
||||||
|
switch (c) {
|
||||||
|
case 0 : break;
|
||||||
|
@@ -150,6 +152,8 @@
|
||||||
|
return 0;
|
||||||
|
case 'V': fprintf(stderr,"%s version %s\n", progname, VERSION);
|
||||||
|
return 0;
|
||||||
|
+ case 'o': break;
|
||||||
|
+ case 's': break;
|
||||||
|
case 'm': re=optarg;
|
||||||
|
default : break;
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Description: Display a random fortune
|
||||||
|
# URL: http://www.ibiblio.org/pub/Linux/games/amusements/fortune/
|
||||||
|
# Packager: milisarge
|
||||||
|
# Depends on:
|
||||||
|
|
||||||
|
name=fortune
|
||||||
|
version=0.2
|
||||||
|
release=1
|
||||||
|
source=(http://www.ibiblio.org/pub/Linux/games/amusements/$name/$name-$version.tar.gz \
|
||||||
|
$name-$version.patch \
|
||||||
|
http://crux.nu/~tek/fortune_big.zip \
|
||||||
|
http://www.schwarzvogel.de/pkgs/kernelcookies-8.tar.gz \
|
||||||
|
http://www.splitbrain.org/_media/projects/fortunes/fortune-simpsons-chalkboard.tgz \
|
||||||
|
http://www.splitbrain.org/_media/projects/fortunes/fortune-discworld.tgz \
|
||||||
|
http://crux.nu/files/distfiles/fortune-mod-prog-style.tar.gz)
|
||||||
|
|
||||||
|
build(){
|
||||||
|
local cookie
|
||||||
|
cd $name-$version
|
||||||
|
|
||||||
|
patch -p1 < ../$name-$version.patch
|
||||||
|
make
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/{bin,man/man6,share/games/fortunes}
|
||||||
|
|
||||||
|
install -m 755 $name $PKG/usr/bin/$name
|
||||||
|
install -m 644 debian/$name.6 $PKG/usr/man/man6/
|
||||||
|
|
||||||
|
cd $SRC
|
||||||
|
for cookie in */prog-style */discworld */chalkboard */kernelcookies fortune
|
||||||
|
do
|
||||||
|
install -m 644 $cookie $PKG/usr/share/games/fortunes/
|
||||||
|
done
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
# Description: X Window System Lock Screen
|
||||||
|
# URL: http://www.tux.org/~bagleyd/xlockmore.html
|
||||||
|
# Packager: milisarge
|
||||||
|
# Depends on: gtk2 fortune
|
||||||
|
|
||||||
|
name=xlockmore
|
||||||
|
version=5.49
|
||||||
|
release=1
|
||||||
|
source=(http://sillycycle.com/xlock/xlockmore-$version.tar.xz)
|
||||||
|
|
||||||
|
build(){
|
||||||
|
cd $name-$version
|
||||||
|
./configure --prefix=/usr --enable-vtlock --enable-syslog \
|
||||||
|
--enable-multiple-user --enable-multiple-root \
|
||||||
|
--without-motif --with-opengl --without-esound
|
||||||
|
make
|
||||||
|
make prefix=$PKG/usr xapploaddir=$PKG/etc/X11/app-defaults install
|
||||||
|
if [ -d $PKG/usr/lib ]; then
|
||||||
|
rm -rf $PKG/usr/lib
|
||||||
|
fi
|
||||||
|
mv $PKG/usr/share/man $PKG/usr
|
||||||
|
}
|
Loading…
Reference in New Issue