* added some more pkgs for livecd

This commit is contained in:
Phil Miller 2010-05-21 21:51:58 +00:00
parent 91784e598e
commit ea430f4a27
12 changed files with 313 additions and 0 deletions

35
chakra-initscripts/PKGBUILD Executable file
View File

@ -0,0 +1,35 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
_origname=initscripts
pkgname=chakra-initscripts
pkgver=2010.05
pkgrel=3
pkgdesc="System initialization/bootup scripts"
arch=('any')
url="http://www.archlinux.org"
license=('GPL')
groups=('base')
depends=('glibc' 'bash' 'awk' 'grep' 'coreutils' 'sed' 'udev>=139-1'
'net-tools' 'ncurses' 'kbd' 'findutils' 'sysvinit')
install=initscripts.install
source=(http://chakra-project.org/sources/initscripts/${_origname}-${pkgver}-${pkgrel}.tar.gz)
md5sums=('6de41e3b3792d91a1f84abea73f16611')
provides=('initscripts=2010.05')
build() {
cd ${srcdir}/${_origname}-${pkgver}-${pkgrel}/
DESTDIR=$startdir/pkg ./install.sh
cp -rf ${startdir}/etc ${startdir}/pkg
#remove nasty .svn folders
cd ${startdir}/pkg
rm -rfv `find . -type d -name .svn`
}

View File

@ -0,0 +1,7 @@
post_upgrade() {
if [ "$(vercmp $2 2009.07)" -lt 0 ]; then
echo "==> Adjusting /etc/inittab for transition to /dev/tty standard."
echo "==> Original file saved as /etc/inittab.pacsave"
sed -i'.pacsave' 's#vc/\([0-9]\)#tty\1#' /etc/inittab
fi
}

77
squashfs-tools/Makefile Normal file
View File

@ -0,0 +1,77 @@
#
# Building LZMA support
# Download LZMA sdk (4.65 used in development, other versions may work),
# set LZMA_DIR to unpacked source, and uncomment next line
LZMA_SUPPORT = 1
LZMA_DIR = ../../
#Compression default.
COMP_DEFAULT = lzma
INCLUDEDIR = -I.
INSTALL_DIR = /usr/local/bin
MKSQUASHFS_OBJS = mksquashfs.o read_fs.o sort.o swap.o pseudo.o compressor.o \
gzip_wrapper.o
UNSQUASHFS_OBJS = unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o \
unsquash-4.o swap.o compressor.o gzip_wrapper.o
CFLAGS = $(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
-D_GNU_SOURCE -DCOMP_DEFAULT=\"$(COMP_DEFAULT)\" -O2 -Wall
ifdef LZMA_SUPPORT
LZMA_OBJS = $(LZMA_DIR)/C/Alloc.o $(LZMA_DIR)/C/LzFind.o \
$(LZMA_DIR)/C/LzmaDec.o $(LZMA_DIR)/C/LzmaEnc.o $(LZMA_DIR)/C/LzmaLib.o
INCLUDEDIR += -I$(LZMA_DIR)/C
CFLAGS += -DLZMA_SUPPORT
MKSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS)
UNSQUASHFS_OBJS += lzma_wrapper.o $(LZMA_OBJS)
endif
.PHONY: all
all: mksquashfs unsquashfs
mksquashfs: $(MKSQUASHFS_OBJS)
$(CC) $(MKSQUASHFS_OBJS) -lz -lpthread -lm -o $@
mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h \
squashfs_swap.h
read_fs.o: read_fs.c squashfs_fs.h read_fs.h global.h squashfs_swap.h
sort.o: sort.c squashfs_fs.h global.h sort.h
swap.o: swap.c
pseudo.o: pseudo.c pseudo.h
compressor.o: compressor.c compressor.h
unsquashfs: $(UNSQUASHFS_OBJS)
$(CC) $(UNSQUASHFS_OBJS) -lz -lpthread -lm -o $@
unsquashfs.o: unsquashfs.h unsquashfs.c squashfs_fs.h squashfs_swap.h \
squashfs_compat.h global.h
unsquash-1.o: unsquashfs.h unsquash-1.c squashfs_fs.h squashfs_compat.h \
global.h
unsquash-2.o: unsquashfs.h unsquash-2.c unsquashfs.h squashfs_fs.h \
squashfs_compat.h global.h
unsquash-3.o: unsquashfs.h unsquash-3.c squashfs_fs.h squashfs_compat.h \
global.h
unsquash-4.o: unsquashfs.h unsquash-4.c squashfs_fs.h squashfs_swap.h \
global.h
.PHONY: clean
clean:
-rm -f *.o mksquashfs unsquashfs
.PHONY: install
install: mksquashfs unsquashfs
mkdir -p $(INSTALL_DIR)
cp mksquashfs $(INSTALL_DIR)
cp unsquashfs $(INSTALL_DIR)

35
squashfs-tools/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=squashfs-tools
pkgver=4.0.lzma
pkgrel=1
pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux."
url="http://squashfs.sourceforge.net"
license=("GPL")
arch=('i686' 'x86_64')
depends=('zlib' 'glibc')
source=(squashfs4.0-lzma-snapshot.tgz
http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2
Makefile)
build()
{
cd $startdir/src/squashfs4.0-lzma-snapshot/$pkgname
#reduce memory requirements of unsquashfs to support installation on systems with 256 MB RAM
sed -i -e 's/BUFFER_DEFAULT [0-9]*/BUFFER_DEFAULT 32/' $startdir/src/squashfs4.0-lzma-snapshot/$pkgname/unsquashfs.h
cp -f $srcdir/Makefile $srcdir/squashfs4.0-lzma-snapshot/$pkgname
make || return 1
mkdir -p $startdir/pkg/sbin
cp -a mksquashfs unsquashfs $startdir/pkg/sbin
}
md5sums=('a2e01bcd59a56cf17587d6481f341b64'
'29d5ffd03a5a3e51aef6a74e9eafb759'
'06a8f904515801c8a66c7b806b0f901a')

Binary file not shown.

Binary file not shown.

30
vhba-module/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# $Id: PKGBUILD 12126 2010-02-27 16:39:21Z ibiru $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Charles Lindsay <charles@chaoslizard.org>
pkgname=vhba-module
pkgver=1.2.1
_kernver='2.6.33-ARCH'
pkgrel=7
pkgdesc="Kernel module that emulates SCSI devices"
arch=('i686' 'x86_64')
url="http://cdemu.sourceforge.net/"
license=('GPL2')
depends=('kernel26>=2.6.33' 'kernel26<2.6.34')
makedepends=('kernel26-headers>=2.6.33')
install=vhba-module.install
source=(http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2)
md5sums=('a3b6ad798f2b72ef599df797ef79e5ec')
build() {
cd "$srcdir/$pkgname-$pkgver"
#workaround to fix compilation against 2.6.33
#http://bugs.gentoo.org/233910
for i in kat/*.c; do
sed -i "s:<linux/autoconf.h>:<generated/autoconf.h>:" $i
done
make -j1 KDIR=/usr/src/linux-${_kernver} || return 1
install -D vhba.ko "$pkgdir/lib/modules/${_kernver}/extra/vhba.ko" || return 1
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/vhba-module.install"
}

View File

@ -0,0 +1,16 @@
post_install() {
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
echo ">> This module needs to be recompiled for every kernel version upgrade."
KERNEL_VERSION='2.6.33-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
post_upgrade() {
post_install
}
post_remove() {
KERNEL_VERSION='2.6.33-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}

40
vi/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# $Id: PKGBUILD 71573 2010-03-07 19:09:56Z paul $
# Maintainer: tobias [ tobias at archlinux org ]
pkgname=vi
pkgver=050325
pkgrel=3
pkgdesc='The original ex/vi text editor.'
arch=('i686' 'x86_64')
url='http://ex-vi.sourceforge.net/'
license=('custom:ex')
depends=('ncurses')
groups=('base')
options=(force strip !libtool emptydirs)
source=(http://downloads.sourceforge.net/sourceforge/ex-vi/ex-${pkgver}.tar.bz2
navkeys.patch increase-tube.patch exrc.sample)
md5sums=('e668595254233e4d96811083a3e4e2f3' 'aac133930047eafa4f28736cfaf976b3'
'e596e05a00a24187b576e389fa1de45d' 'd3b483c994d859232ce369b82a4b5668')
build() {
cd ${srcdir}/ex-${pkgver} || return 1
# apply patches
patch -Np1 -i ../navkeys.patch || return 1
patch -Np0 -i ../increase-tube.patch || return 1
# correct paths in manpages
sed -i -e 's/^\.B \/usr\/libexec/.B \/usr\/lib\/ex/' vi.1 \
|| return 1
sed -i -e 's/^\.B \/var\/preserve$/.B \/var\/lib\/ex/' vi.1 \
|| return 1
make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex \
'FEATURES=-DCHDIR -DFASTTAG -DUCVISUAL -DMB -DBIT8' TERMLIB=ncurses \
|| return 1
make PREFIX=/usr LIBEXECDIR=/usr/lib/ex PRESERVEDIR=/var/lib/ex INSTALL=/bin/install \
"DESTDIR=$pkgdir" install || return 1
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE \
|| return 1
}

5
vi/exrc.sample Normal file
View File

@ -0,0 +1,5 @@
" A sample .exrc file. Copy it to your home dir as ~/.exrc in order to work.
set showmode
set noflash
set autoindent
set shiftwidth=2

13
vi/increase-tube.patch Normal file
View File

@ -0,0 +1,13 @@
--- config.h 2005-02-19 05:25:39.000000000 -0500
+++ config.h.fixed 2010-01-04 22:02:01.000000000 -0500
@@ -95,8 +95,8 @@
#define TUBESIZE 6000 /* Maximum screen size for visual */
#else /* VMUNIX */
#define TUBELINES 100
-#define TUBECOLS 160
-#define TUBESIZE 16000
+#define TUBECOLS 320
+#define TUBESIZE 32000
#endif /* VMUNIX */
/*

55
vi/navkeys.patch Normal file
View File

@ -0,0 +1,55 @@
diff -ru ex-050325/ex_tty.c ex-050325-du/ex_tty.c
--- ex-050325/ex_tty.c 2005-03-04 13:42:58.000000000 +0100
+++ ex-050325-du/ex_tty.c 2009-06-25 20:06:57.000000000 +0200
@@ -132,7 +132,8 @@
&ED, &EI, &F0, &F1, &F2, &F3, &F4, &F5, &F6, &F7, &F8, &F9,
&HO, &IC, &IM, &IP, &KD, &KE, &KH, &KL, &KR, &KS, &KU, &LL, &ND, &xNL,
&xPC, &RC, &SC, &SE, &SF, &SO, &SR, &TA, &TE, &TI, &UP, &VB, &VS, &VE,
- &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM
+ &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM,
+ &kI, &kD, &kh, &at7, &kP, &kN
};
bool *sflags[] = {
&AM, &BS, &DA, &DB, &EO, &HC,
@@ -170,7 +171,12 @@
addmac1(KD, "j", "down", arrows, 1);
addmac1(KL, "h", "left", arrows, 1);
addmac1(KR, "l", "right", arrows, 1);
- addmac1(KH, "H", "home", arrows, 1);
+ addmac1(kI, "i", "insert", arrows, 1);
+ addmac1(kD, "x", "delete", arrows, 1);
+ addmac1(kh, "^", "home", arrows, 1);
+ addmac1(at7, "$", "end", arrows, 1);
+ addmac1(kP, "", "pgup", arrows, 1);
+ addmac1(kN, "", "pgdn", arrows, 1);
/*
* Handle funny termcap capabilities
@@ -341,7 +347,7 @@
*(*fp++) = flag;
namp += 2;
} while (*namp);
- namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERI";
+ namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERIkIkDkh@7kPkN";
sp = sstrs;
do {
string = tgetstr(namp, &aoftspace);
diff -ru ex-050325/ex_tty.h ex-050325-du/ex_tty.h
--- ex-050325/ex_tty.h 2004-12-01 19:21:06.000000000 +0100
+++ ex-050325-du/ex_tty.h 2009-06-25 20:06:05.000000000 +0200
@@ -183,6 +183,15 @@
var bool XX; /* Tektronix 4025 insert line */
/* X? is reserved for severely nauseous glitches */
/* If there are enough of these we may need bit masks! */
+/*
+ * Insert, Delete, Home, End, PgUp an PgDown keys
+ */
+var char *kI;
+var char *kD;
+var char *kh;
+var char *at7;
+var char *kP;
+var char *kN;
/*
* From the tty modes...