Added linux
This commit is contained in:
parent
3182a6f943
commit
81f080d2ed
9 changed files with 4921 additions and 13 deletions
14
lazypkg.sh
14
lazypkg.sh
|
@ -6,11 +6,17 @@ export CXX=clang++
|
|||
. ./build.sh
|
||||
dir=$(pwd)
|
||||
stat out > /dev/null && rm -rf out
|
||||
mkdir -p src
|
||||
cd src
|
||||
srcdir=$(pwd)
|
||||
mkdir out
|
||||
|
||||
function do_fetch() {
|
||||
mkdir -p src
|
||||
cd src
|
||||
srcdir=$(pwd) fetch
|
||||
}
|
||||
|
||||
stat src > /dev/null 2>/dev/null || do_fetch
|
||||
srcdir=$(pwd)/src
|
||||
|
||||
fetch
|
||||
cd $srcdir
|
||||
|
||||
build
|
||||
|
|
|
@ -13,23 +13,23 @@ fetch() {
|
|||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure --prefix=/
|
||||
./configure --prefix=/usr
|
||||
gmake
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/bin
|
||||
install -Dm4755 doas $pkgdir/bin
|
||||
install -d $pkgdir/usr/bin
|
||||
install -Dm4755 doas $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/share/man/
|
||||
install -d $pkgdir/share/man/man1
|
||||
install -d $pkgdir/share/man/man5
|
||||
install -Dm644 doas.1 $pkgdir/share/man/man1
|
||||
install -Dm644 doas.conf.5 $pkgdir/share/man/man5
|
||||
install -d $pkgdir/usr/share/man/
|
||||
install -d $pkgdir/usr/share/man/man1
|
||||
install -d $pkgdir/usr/share/man/man5
|
||||
install -Dm644 doas.1 $pkgdir/usr/share/man/man1
|
||||
install -Dm644 doas.conf.5 $pkgdir/usr/share/man/man5
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
36
pkgs/flex/build.sh
Normal file
36
pkgs/flex/build.sh
Normal file
|
@ -0,0 +1,36 @@
|
|||
pkgver=2.6.4
|
||||
pkgname=flex
|
||||
bad=""
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl -L https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz -o $pkgname-$pkgver.tar.gz
|
||||
tar -xf $pkgname-$pkgver.tar.gz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
ln -sr $pkgdir/usr/bin/flex $pkgdir/usr/bin/lex
|
||||
rm -r $pkgdir/usr/share
|
||||
rm -r $pkgdir/usr/lib/*.a
|
||||
rm -r $pkgdir/usr/lib/*.la
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
33
pkgs/linux/build.sh
Normal file
33
pkgs/linux/build.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
pkgver=5.10.7
|
||||
pkgname=linux
|
||||
pkgrel=1
|
||||
|
||||
fetch() {
|
||||
curl "https://k1ss.org/wiki/kernel/patches/kernel-no-perl.patch" -o kernel-no-perl.patch
|
||||
curl "https://cdn.kernel.org/pub/linux/kernel/v5.x/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 < ../kernel-no-perl.patch
|
||||
patch -p1 < ../../kernel-byacc.patch
|
||||
cp ../../x86_64.config .config
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
#gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 defconfig
|
||||
#gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 menuconfig
|
||||
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 oldconfig
|
||||
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/boot
|
||||
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 INSTALL_PATH=$pkgdir/boot install
|
||||
gmake CC=cc CXX=c++ HOSTCC=cc HOSTCXX=c++ YACC=yacc LLVM_IAS=1 INSTALL_MOD_PATH=$pkgdir/ modules_install
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat COPYING
|
||||
}
|
13
pkgs/linux/kernel-byacc.patch
Normal file
13
pkgs/linux/kernel-byacc.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
|
||||
index 4c51c95d40f4..64e98e1d4825 100644
|
||||
--- a/scripts/Makefile.host
|
||||
+++ b/scripts/Makefile.host
|
||||
@@ -11,7 +11,7 @@ $(obj)/%.lex.c: $(src)/%.l FORCE
|
||||
# YACC
|
||||
# ---------------------------------------------------------------------------
|
||||
quiet_cmd_bison = YACC $(basename $@).[ch]
|
||||
- cmd_bison = $(YACC) -o $(basename $@).c --defines=$(basename $@).h -t -l $<
|
||||
+ cmd_bison = $(YACC) -b $(basename $(basename $@)) -d -t -l $<
|
||||
|
||||
$(obj)/%.tab.c $(obj)/%.tab.h: $(src)/%.y FORCE
|
||||
$(call if_changed,bison)
|
4755
pkgs/linux/x86_64.config
Normal file
4755
pkgs/linux/x86_64.config
Normal file
File diff suppressed because it is too large
Load diff
30
pkgs/pci-ids/build.sh
Normal file
30
pkgs/pci-ids/build.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
pkgver=2.2
|
||||
pkgname=pci-ids
|
||||
pkgrel=1
|
||||
bad=""
|
||||
ext=""
|
||||
|
||||
fetch() {
|
||||
mkdir $pkgname-$pkgver
|
||||
cd $pkgname-$pkgver
|
||||
curl "https://pci-ids.ucw.cz/v2.2/pci.ids" -o pci.ids
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
echo "Nothing to do"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
install -d $pkgdir/usr/share/misc
|
||||
install -Dm 644 pci.ids $pkgdir/usr/share/misc
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
echo "The contents of the database and the generated files can be distributed"
|
||||
echo "under the terms of either the GNU General Public License (version 2 or later)"
|
||||
echo "or of the 3-clause BSD License. The database is a compilation of factual data,"
|
||||
echo "and as such the copyright only covers the aggregation and formatting."
|
||||
}
|
34
pkgs/pkgconf/build.sh
Normal file
34
pkgs/pkgconf/build.sh
Normal file
|
@ -0,0 +1,34 @@
|
|||
pkgver=1.1.0
|
||||
pkgname=pkgconf
|
||||
bad=""
|
||||
ext="doc"
|
||||
|
||||
fetch() {
|
||||
curl https://distfiles.dereferenced.org/pkgconf/pkgconf-1.1.0.tar.xz -o $pkgname-$pkgver.tar.xz
|
||||
tar -xf $pkgname-$pkgver.tar.xz
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
ln -sr $pkgdir/usr/bin/pkgconf $pkgdir/usr/bin/pkg-config
|
||||
rm -r $pkgdir/usr/share
|
||||
}
|
||||
|
||||
package_doc() {
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR=$pkgdir
|
||||
rm -r $pkgdir/usr/bin
|
||||
}
|
||||
|
||||
license() {
|
||||
cd $pkgname-$pkgver
|
||||
cat LICENSE
|
||||
}
|
|
@ -20,9 +20,10 @@ package() {
|
|||
install -d $pkgdir/bin
|
||||
install -Dm755 ./toybox $pkgdir/bin/
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/bin/ln
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/bin/uname
|
||||
install -d $pkgdir/usr/bin
|
||||
cd $pkgdir/usr/bin
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/install
|
||||
ln -sr $pkgdir/bin/toybox $pkgdir/usr/bin/lspci
|
||||
}
|
||||
|
||||
license() {
|
||||
|
|
Loading…
Reference in a new issue