You are not logged in.
Pages: 1
Zero Install - still in development, but looks like something that would make a great augmentation to the use of pacman.
Dave
Offline
These are my PKGBUILDS for zero-install (not perfect yet, but usable):
PLEASE NOTE: updates in following posts
dbus:
pkgname=dbus
pkgver=0.20
pkgrel=1
pkgdesc="D-BUS is a message bus system, a simple way for applications to talk to one another."
url="http://www.freedesktop.org/Software/dbus"
source=(http://freedesktop.org/Software/dbus/releases/$pkgname-$pkgver.tar.gz)
md5sums=('8ebff3cb4beec993e9160ff844e0411c')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
}
lazyfs:
# Creates a module for the running kernel. If you have multiple kernel versions
# installed, you will need to edit this PKGBUILD a bit ;)
pkgname=lazyfs
pkgver=0.1.21
pkgrel=1
pkgdesc="Kernel module for Zero Install"
url="http://zero-install.sourceforge.net/"
makedepends=(gnupg wget sed)
build() {
cd $startdir/src/
wget http://osdn.dl.sourceforge.net/sourceforge/zero-install/$pkgname-linux-$pkgver.tgz.gpg
gpg $pkgname-linux-$pkgver.tgz.gpg
tar xzf $pkgname-linux-$pkgver.tgz
cd $pkgname-linux-$pkgver
./configure --with-linux=/usr/src/linux-`uname -r`
make || return 1
mkdir -p $startdir/pkg/lib/modules/`uname -r`/kernel/fs/lazyfs
cp `echo $pkgname$pkgver | sed -e 's/./d/g'`.ko $startdir/pkg/lib/modules/`uname -r`/kernel/fs/lazyfs/
# replace .ko with .o for 2.4 kernels
}
zero-install:
pkgname=zero-install
pkgver=0.1.22
pkgrel=1
pkgdesc="The Zero Install system makes installing software unnecessary."
url="http://zero-install.sourceforge.net/"
depends=(lazyfs dbus bzip2 expat tar wget gnupg)
makedepends=(gnupg wget dbus)
install=zero-install.install
build() {
cd $startdir/src/
groupadd -g 260 zeroinst || groupadd zeroinst
useradd -d /uri -s /bin/false -g zeroinst -u 260 zeroinst || useradd -d /uri -s /bin/false -g zeroinst zeroinst
wget http://osdn.dl.sourceforge.net/zero-install/$pkgname-$pkgver.tar.gz.gpg
gpg $pkgname-$pkgver.tar.gz.gpg
tar xzf $pkgname-$pkgver.tar.gz
cd $pkgname-$pkgver
./configure --prefix=/usr --with-user=zeroinst --with-initdir=/etc/rc.d
make || return 1
make prefix=$startdir/pkg/usr ROOT_PREFIX=$startdir/pkg myexecbindir=$startdir/pkg/usr/bin install
}
zero-install.install :
# arg 1: the new package version
post_install() {
groupadd -g 260 zeroinst || groupadd zeroinst
useradd -d /uri -s /bin/false -g zeroinst -u 260 zeroinst || useradd -d /uri -s /bin/false -g zeroinst zeroinst
echo
echo Please edit your configuration files, if necessary.
echo /etc/fstab :
echo lazyfs /uri/0install lazyfs0d1d21 noauto,/var/cache/zero-inst 0 0
echo /etc/rc.conf : MODULES :
echo lazyfs0d1d21
echo /etc/rc.conf : DEAMONS :
echo 0install
echo
echo thank you
echo
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/etc/rc.d/0install start
/bin/true
}
# arg 1: the old package version
pre_remove() {
/etc/rc.d/0install stop
/bin/true
}
op=$1
shift
$op $*
Have fun!
I wish life was as simple as editing config files
Offline
dbus:
pkgname=dbus
pkgver=0.21
pkgrel=1
pkgdesc="D-BUS is a message bus system, a simple way for applications to talk to one another."
url="http://www.freedesktop.org/Software/dbus"
depends=(python pyrex)
makedepends=(python pyrex)
source=(http://freedesktop.org/Software/dbus/releases/$pkgname-$pkgver.tar.gz)
md5sums=('311229d60154334ee3f908badc56747d')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --enable-python
make || return 1
make prefix=$startdir/pkg/usr install
}
pyrex:
pkgname=pyrex
pkgver=0.9
pkgrel=1
pkgdesc="Pyrex lets you write code that mixes Python and C data types any way you want, and compiles it into a C extension for Python."
url="http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/"
depends=(python)
makedepends=(python)
source=(http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Pyrex-$pkgver.tar.gz)
md5sums=('99ae698c3f308d0d1eff1078ac87d459')
build() {
cd $startdir/src/Pyrex-$pkgver
python setup.py install --prefix=$startdir/pkg/usr
}
I wish life was as simple as editing config files
Offline
Awesome. Can't wait to get back home to try it out. Thanks!!!
Dave
Offline
Something keeps crashing my computer and it seems to be one of the parts of 0install. I will probably stop working on these packages untill the next version.
Sorry.
I wish life was as simple as editing config files
Offline
Don't apologize, I really appreciate the effort. I'm in the middle of rebuilding my Arch installation and will test what is currently built. I know that the 0install sort of flies in the face of pacman, but I hope that it is something that becomes quite stable and one day is available in most Linux installs.
The nice part of 0install is that it actually produces functionality that MS has been preaching about for years as the next grail of software distribution.
Dave
Offline
Really? I thought they were talking about something that looked only a bit similiar, that would limit your freedom (software for rent...)
I think 0install and pacman can happily coexist on one system. If I were a sysadmin, I would, say, every month, have a look at what users get trough 0install, then abs/pacman my own optimized version of it.
There are some things that cannot be installed trough 0install: 0install itself and everything it depends on. It can never completely replace traditional package management (OK, you can copy those things trough 0install and install them manually. not very convenient).
0install does try to put files in places where pacman usually would. No file conflicts.
I wish life was as simple as editing config files
Offline
It's true - MS's version does have "rental" charges associated with it. I was more speaking of the distribution model, not the licensing mode.
I think 0install has the potential to revolutionize package management for linux. It'll make on-demand computing just that much more, and with the GUI, helps users who would shy away from a pacman or a portage or an apt package manager.
Dave
Offline
Not to mention that if it becomes a standard it'll end up with a larger repository than any one distribution, which is a great boon to anyone not using the distro flavors of the month.
Imagine a combination of 0Install with BitTorrent :shock: it'd be a bit harder to have servers set up a tracker instead of just an FTP and it'd probably drain connections if it wasn't set up right but the thought of drawing your downloads from every Linux box in the world running that package is...amusing It probably presents a new problem of scaling though; too many seeds to choose from.
Offline
Pages: 1