Skip to content

Commit 6d683c3

Browse files
committed
Tucana 2.4
1 parent e31324a commit 6d683c3

18 files changed

Lines changed: 780 additions & 0 deletions

apache

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
set -e
6+
URL=https://archive.apache.org/dist/httpd/httpd-2.4.57.tar.bz2
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=apache
10+
# Thanks LFS for systemd units
11+
BLFS_SYSTEMD_VER=20220720
12+
# User check
13+
getent passwd apache > /dev/null
14+
15+
if [ $? -eq 0 ]; then
16+
:
17+
else
18+
groupadd -g 25 apache &&
19+
useradd -c "Apache Server" -d /srv/www -g apache \
20+
-s /bin/false -u 25 apache
21+
fi
22+
# Get Package
23+
24+
cd /blfs/builds
25+
wget $URL
26+
wget https://www.linuxfromscratch.org/patches/blfs/svn/httpd-2.4.57-blfs_layout-1.patch
27+
tar -xvf $TAR
28+
cd $DIR
29+
30+
# Build
31+
32+
patch -Np1 -i ../httpd-2.4.57-blfs_layout-1.patch &&
33+
34+
sed '/dir.*CFG_PREFIX/s@^@#@' -i support/apxs.in &&
35+
36+
sed -e '/HTTPD_ROOT/s:${ap_prefix}:/etc/httpd:' \
37+
-e '/SERVER_CONFIG_FILE/s:${rel_sysconfdir}/::' \
38+
-e '/AP_TYPES_CONFIG_FILE/s:${rel_sysconfdir}/::' \
39+
-i configure &&
40+
41+
./configure --enable-authnz-fcgi \
42+
--enable-layout=BLFS \
43+
--enable-mods-shared="all cgi" \
44+
--enable-mpms-shared=all \
45+
--enable-suexec=shared \
46+
--with-apr=/usr/bin/apr-1-config \
47+
--with-apr-util=/usr/bin/apu-1-config \
48+
--with-suexec-bin=/usr/lib/httpd/suexec \
49+
--with-suexec-caller=apache \
50+
--with-suexec-docroot=/srv/www \
51+
--with-suexec-logfile=/var/log/httpd/suexec.log \
52+
--with-suexec-uidmin=100 \
53+
--with-suexec-userdir=public_html
54+
55+
make -j22
56+
57+
58+
# Install
59+
sudo make DESTDIR=/pkgs/$PACKAGE install
60+
mv -v /pkgs/$PACKAGE/usr/sbin/suexec /pkgs/$PACKAGE/usr/lib/httpd/suexec &&
61+
chgrp apache /pkgs/$PACKAGE/usr/lib/httpd/suexec &&
62+
chmod 4754 /pkgs/$PACKAGE/usr/lib/httpd/suexec
63+
64+
echo "groupadd -g 25 apache &&
65+
useradd -c "Apache Server" -d /srv/www -g apache \
66+
-s /bin/false -u 25 apache" > /pkgs/$PACKAGE/postinst
67+
cd /pkgs
68+
69+
70+
71+
sudo echo "apr-util nghttp2 openssl pcre2 zlib" > /pkgs/$PACKAGE/depends
72+
sudo echo "" > /pkgs/$PACKAGE/make-depends
73+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
74+
sudo cp $PACKAGE.tar.xz /finished
75+
76+
77+
cd /blfs/builds
78+
sudo rm -r $DIR
79+
80+

apr

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
6+
URL=https://archive.apache.org/dist/apr/apr-1.7.4.tar.bz2
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
./configure --prefix=/usr \
21+
--disable-static \
22+
--with-installbuilddir=/usr/share/apr-1/build
23+
24+
25+
make -j16
26+
27+
28+
# Install
29+
sudo make DESTDIR=/pkgs/$PACKAGE install
30+
sudo make install
31+
cd /pkgs
32+
33+
34+
35+
sudo echo "" > /pkgs/$PACKAGE/depends
36+
sudo echo "" > /pkgs/$PACKAGE/make-depends
37+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
38+
sudo cp $PACKAGE.tar.xz /finished
39+
40+
41+
cd /blfs/builds
42+
sudo rm -r $DIR
43+
44+

apr-util

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
6+
URL=https://archive.apache.org/dist/apr/apr-util-1.6.3.tar.bz2
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
./configure --prefix=/usr \
21+
--with-apr=/usr \
22+
--with-gdbm=/usr \
23+
--with-openssl=/usr \
24+
--with-crypto
25+
26+
27+
make -j16
28+
29+
30+
# Install
31+
sudo make DESTDIR=/pkgs/$PACKAGE install
32+
sudo make install
33+
cd /pkgs
34+
35+
36+
37+
sudo echo "apr" > /pkgs/$PACKAGE/depends
38+
sudo echo "" > /pkgs/$PACKAGE/make-depends
39+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
40+
sudo cp $PACKAGE.tar.xz /finished
41+
42+
43+
cd /blfs/builds
44+
sudo rm -r $DIR
45+
46+

archive-zip

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
6+
URL=https://www.cpan.org/authors/id/P/PH/PHRED/Archive-Zip-1.68.tar.gz
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
21+
22+
perl Makefile.PL
23+
make -j22
24+
25+
26+
# Install
27+
sudo make DESTDIR=/pkgs/$PACKAGE install
28+
sudo make install
29+
cd /pkgs
30+
31+
32+
33+
sudo echo "unzip perl" > /pkgs/$PACKAGE/depends
34+
sudo echo "" > /pkgs/$PACKAGE/make-depends
35+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
36+
sudo cp $PACKAGE.tar.xz /finished
37+
38+
39+
cd /blfs/builds
40+
sudo rm -r $DIR
41+
42+

glm

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
PKG_VER=0.9.9.8
6+
URL=https://github.com/g-truc/glm/archive/$PKG_VER/glm-$PKG_VER.tar.gz
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
mkdir -p /pkgs/$PACKAGE/usr/include
19+
mkdir -p /pkgs/$PACKAGE/usr/share/doc/glm-0.9.9.8
20+
cp -r glm /pkgs/$PACKAGE/usr/include/ &&
21+
cp -r doc /pkgs/$PACKAGE/usr/share/doc/glm-0.9.9.8
22+
cd /pkgs
23+
24+
25+
26+
sudo echo "" > /pkgs/$PACKAGE/depends
27+
sudo echo "" > /pkgs/$PACKAGE/make-depends
28+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
29+
sudo cp $PACKAGE.tar.xz /finished
30+
31+
32+
cd /blfs/builds
33+
sudo rm -r $DIR
34+
35+

gpgme

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
PKG_VER=1.20.0
6+
URL=https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$PKG_VER.tar.bz2
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
./configure --prefix=/usr --disable-gpg-test
21+
22+
23+
make -j16
24+
25+
26+
# Install
27+
sudo make DESTDIR=/pkgs/$PACKAGE install
28+
sudo make install
29+
cd /pkgs
30+
31+
32+
33+
sudo echo "libassuan" > /pkgs/$PACKAGE/depends
34+
sudo echo "" > /pkgs/$PACKAGE/make-depends
35+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
36+
sudo cp $PACKAGE.tar.xz /finished
37+
38+
39+
cd /blfs/builds
40+
sudo rm -r $DIR
41+
42+

intel-gmmlib

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
6+
URL=https://github.com/intel/gmmlib/archive/refs/tags/intel-gmmlib-22.3.4.tar.gz
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=gmmlib-$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=intel-gmmlib
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
21+
mkdir build &&
22+
cd build &&
23+
24+
cmake -DCMAKE_INSTALL_PREFIX=/usr \
25+
-DBUILD_TYPE=Release \
26+
-Wno-dev ..
27+
28+
make -j16
29+
30+
31+
# Install
32+
sudo make DESTDIR=/pkgs/$PACKAGE install
33+
sudo make install
34+
cd /pkgs
35+
36+
37+
38+
sudo echo "" > /pkgs/$PACKAGE/depends
39+
sudo echo "" > /pkgs/$PACKAGE/make-depends
40+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
41+
sudo cp $PACKAGE.tar.xz /finished
42+
43+
44+
cd /blfs/builds
45+
sudo rm -r $DIR
46+
47+

intel-media-driver

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=-"O2"
4+
export CXXFLAGS="-O2"
5+
6+
URL=https://github.com/intel/media-driver/archive/refs/tags/intel-media-23.1.2.tar.gz
7+
TAR=$(echo $URL | sed -r 's|(.*)/||')
8+
DIR=$(echo $TAR | sed 's|.tar.*||g')
9+
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
10+
11+
# Get Package
12+
13+
cd /blfs/builds
14+
wget $URL
15+
tar -xvf $TAR
16+
cd $DIR
17+
18+
# Build
19+
20+
mkdir build &&
21+
cd build &&
22+
23+
cmake -DCMAKE_INSTALL_PREFIX=/usr \
24+
-DINSTALL_DRIVER_SYSCONF=OFF \
25+
-DBUILD_TYPE=Release \
26+
-Wno-dev ..
27+
28+
29+
make -j16
30+
31+
32+
# Install
33+
sudo make DESTDIR=/pkgs/$PACKAGE install
34+
sudo make install
35+
cd /pkgs
36+
37+
38+
39+
sudo echo "libva intel-gmmlib" > /pkgs/$PACKAGE/depends
40+
sudo echo "" > /pkgs/$PACKAGE/make-depends
41+
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
42+
sudo cp $PACKAGE.tar.xz /finished
43+
44+
45+
cd /blfs/builds
46+
sudo rm -r $DIR
47+
48+

0 commit comments

Comments
 (0)