convert a couple of packages to the new package system
This commit is contained in:
parent
4dc299869a
commit
4a5bf7cce5
22 changed files with 195 additions and 133 deletions
|
@ -1,9 +0,0 @@
|
|||
prepare:
|
||||
git clone git://git.sv.gnu.org/autoconf
|
||||
cd autoconf
|
||||
autoconf:
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
14
autoconf/PACKAGE
Normal file
14
autoconf/PACKAGE
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone git://git.sv.gnu.org/autoconf
|
||||
cd autoconf
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
prepare:
|
||||
git clone https://git.savannah.gnu.org/git/auto$(MAKE).git
|
||||
cd auto$(MAKE)
|
||||
auto$(MAKE):
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
13
automake/PACKAGE
Normal file
13
automake/PACKAGE
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone https://git.savannah.gnu.org/git/automake.git
|
||||
cd automake
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
prepare:
|
||||
git clone https://git.savannah.gnu.org/git/bash.git
|
||||
cd bash
|
||||
bash:
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
13
bash/PACKAGE
Normal file
13
bash/PACKAGE
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone https://git.savannah.gnu.org/git/bash.git
|
||||
cd bash
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,9 +1,12 @@
|
|||
prepare:
|
||||
#!/bin/sh
|
||||
pkg_ver="2.10.1"
|
||||
|
||||
pkg_install() {
|
||||
wget -O binutils.tar.gz https://mirrors.nav.ro/gnu/binutils/binutils-2.10.1.tar.gz
|
||||
tar -xf binutils.tar.gz
|
||||
cd binutils
|
||||
$(MAKE):
|
||||
@../configure --prefix=/usr \
|
||||
|
||||
../configure --prefix=/usr \
|
||||
--enable-gold \
|
||||
--enable-ld=default \
|
||||
--enable-plugins \
|
||||
|
@ -11,8 +14,11 @@ $(MAKE):
|
|||
--disable-werror \
|
||||
--enable-64-bit-bfd \
|
||||
--with-system-zlib
|
||||
$(MAKE) tooldir=${PREFIX}/usr
|
||||
install:
|
||||
$(MAKE) install tooldir=${PREFIX}/usr DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
||||
|
||||
make tooldir=/usr
|
||||
make install tooldir=/usr DESTDIR=$1
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
prepare:
|
||||
wget -O bison.tar.gz https://mirrors.nav.ro/gnu/bison/bison-1.25.tar.gz
|
||||
tar -xf bison.tar.gz
|
||||
cd bison
|
||||
$(MAKE):
|
||||
@./configure --prefix=/usr
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
15
bison/PACKAGE
Normal file
15
bison/PACKAGE
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="1.25"
|
||||
|
||||
pkg_install() {
|
||||
wget -O bison.tar.gz https://mirrors.nav.ro/gnu/bison/bison-1.25.tar.gz
|
||||
tar -xf bison.tar.gz
|
||||
cd bison
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
prepare:
|
||||
git clone git://busybox.net/busybox.git
|
||||
cd busybox
|
||||
busybox:
|
||||
$(MAKE) defconfig
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
busybox --install
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
14
busybox/PACKAGE
Normal file
14
busybox/PACKAGE
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone git://busybox.net/busybox.git
|
||||
cd busybox
|
||||
make defconfig
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
prepare:
|
||||
git clone https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz bzip2
|
||||
cd bzip2
|
||||
$(MAKE):
|
||||
$(MAKE) -f Makefile-libbz2_so
|
||||
$(MAKE) clean
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) PREFIX=${PREFIX}/tools install
|
||||
cp -v bzip2-shared ${PREFIX}/tools/bin/bzip2
|
||||
cp -av libbz2.so* ${PREFIX}/tools/lib
|
||||
ln -sv libbz2.so.1.0 ${PREFIX}/tools/lib/libbz2.so
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
19
bzip2/PACKAGE
Normal file
19
bzip2/PACKAGE
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone https://www.sourceware.org/pub/bzip2/bzip2-latest.tar.gz bzip2
|
||||
cd bzip2
|
||||
make -f Makefile-libbz2_so
|
||||
make clean
|
||||
make
|
||||
|
||||
make PREFIX=$1/tools install
|
||||
cp -v bzip2-shared $1/tools/bin/bzip2
|
||||
cp -av libbz2.so* $1/tools/lib
|
||||
ln -sv libbz2.so.1.0 $1/tools/lib/libbz2.so
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
prepare:
|
||||
wget -O curl.tar.gz https://curl.se/download/curl-7.77.0.tar.gz
|
||||
tar -xf curl.tar.gz
|
||||
cd curl
|
||||
$(MAKE):
|
||||
@./configure --prefix=/usr --with-openssl
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
16
curl/PACKAGE
Normal file
16
curl/PACKAGE
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="7.77.0"
|
||||
pkg_depends="openssl"
|
||||
|
||||
pkg_install() {
|
||||
wget -O curl.tar.gz https://curl.se/download/curl-7.77.0.tar.gz
|
||||
tar -xf curl.tar.gz
|
||||
cd curl
|
||||
./configure --prefix=/usr --with-openssl
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,16 +1,22 @@
|
|||
prepare:
|
||||
#!/bin/sh
|
||||
pkg_ver="2.6.4"
|
||||
|
||||
pkg_install() {
|
||||
wget -O flex.tar.gz https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz
|
||||
tar -xf flex.tar.gz
|
||||
cd flex
|
||||
$(MAKE):
|
||||
@./configure \
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
ac_cv_func_malloc_0_nonnull=yes \
|
||||
ac_cv_func_realloc_0_nonnull=yes
|
||||
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
ln -s flex "$1/usr/bin/lex"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
||||
|
|
@ -1,16 +1,21 @@
|
|||
prepare:
|
||||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone git://gcc.gnu.org/git/gcc.git
|
||||
cd gcc
|
||||
gcc:
|
||||
|
||||
sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
|
||||
sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
|
||||
mkdir build
|
||||
cd build
|
||||
./configure --prefix=${PREFIX}/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
./configure --prefix=/usr --enable-languages=c,c++,d,fortran,go,objc,obj-c++
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
ln -s gcc "$1/usr/bin/cc"
|
||||
install -Dm755 ../c99 "$1/usr/bin/c99"
|
||||
uninstall:
|
||||
rm -rf /usr/bin/gcc
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
prepare:
|
||||
git clone git://git.kernel.org/pub/scm/git/git.git
|
||||
cd git
|
||||
git:
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
uninstall:
|
||||
$(MAKE) uninstall
|
13
git/PACKAGE
Normal file
13
git/PACKAGE
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
pkgver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone git://git.kernel.org/pub/scm/git/git.git
|
||||
cd git
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,11 +1,14 @@
|
|||
#!/bin/sh
|
||||
pkgver="todo"
|
||||
|
||||
pkg_install() {
|
||||
prepare:
|
||||
git clone https://git.savannah.gnu.org/git/gzip.git/
|
||||
cd gzip
|
||||
$(MAKE):
|
||||
./configure --prefix=$prefix/usr --host=$LFS_TGT
|
||||
$(MAKE) CC="${CC:-cc} -static"
|
||||
install:
|
||||
$(MAKE) DESTDIR=$LFS install
|
||||
./configure --prefix=$1/usr --host=$1
|
||||
make CC="${CC:-cc} -static"
|
||||
make DESTDIR=$1 install
|
||||
|
||||
install -Dm755 pigz "$1/usr/bin/pigz"
|
||||
install -Dm755 unpigz "$1/usr/bin/unpigz"
|
||||
install -Dm644 pigz.1 "$1/usr/share/man/man1/pigz.1"
|
||||
|
@ -13,3 +16,9 @@ install:
|
|||
ln -sf pigz "$1/usr/bin/zcat"
|
||||
ln -sf unpigz "$1/usr/bin/gunzip"
|
||||
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"
|
||||
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
make uninstall
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
prepare:
|
||||
git clone https://github.com/Sweets/hummingbird hummingbird
|
||||
cd hummingbird
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/fs
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/interlude
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/shutdown
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/tty
|
||||
$(MAKE):
|
||||
$(MAKE)
|
||||
install:
|
||||
$(MAKE) install DESTDIR="${PREFIX}"
|
||||
|
||||
mv fs ${PREFIX}/usr/bin/hummingbird/
|
||||
mv interlude ${PREFIX}/usr/bin/hummingbird/
|
||||
mv shutdown ${PREFIX}/usr/bin/hummingbird/
|
||||
mv tty ${PREFIX}/usr/bin/hummingbird/
|
||||
chmod +x ${PREFIX}/usr/bin/hummingbird/*
|
||||
uninstall:
|
||||
@echo "pkgmsg: hummingbird does not have a proper uninstall script"
|
||||
# we would need to rm -rf ${PREFIX}/usr/lib/hummingbird
|
||||
# and rm $(INSTALL) hummingbird "$(DESTDIR)/usr/bin/hummingbird" "$(DESTDIR)/usr/bin/shutdown" "$(DESTDIR)/usr/bin/reboot"
|
23
hummingbird/PACKAGE
Normal file
23
hummingbird/PACKAGE
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
pkg_ver="todo"
|
||||
|
||||
pkg_install() {
|
||||
git clone https://github.com/Sweets/hummingbird hummingbird
|
||||
cd hummingbird
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/fs
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/interlude
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/shutdown
|
||||
wget https://git.hippoz.xyz/alnux/repo/src/branch/master/hummingbird/payload/usr/lib/hummingbird/tty
|
||||
make
|
||||
make install DESTDIR="$1"
|
||||
|
||||
mv fs $1/usr/bin/hummingbird/
|
||||
mv interlude $1/usr/bin/hummingbird/
|
||||
mv shutdown $1/usr/bin/hummingbird/
|
||||
mv tty $1/usr/bin/hummingbird/
|
||||
chmod +x $1/usr/bin/hummingbird/*
|
||||
}
|
||||
|
||||
pkg_uninstall() {
|
||||
# TODO
|
||||
}
|
Loading…
Reference in a new issue