Skip to content

Commit cd272d9

Browse files
committed
official repo release
1 parent edaab59 commit cd272d9

File tree

9 files changed

+35
-971
lines changed

9 files changed

+35
-971
lines changed

.github/build

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/scripts/deb/debian/11.sh

Lines changed: 0 additions & 299 deletions
This file was deleted.

.github/scripts/deb/debian/12.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ else
1515
fi
1616
# ====================================================================================
1717
export DEBIAN_FRONTEND=noninteractive
18-
echo "Updating..." && apt-get update -y > /dev/null 2>&1
19-
echo "Upgrading..." && apt-get upgrade -y > /dev/null 2>&1
18+
echo "Updating..." && apt-get update -y > /dev/null 2>&1; apt-get upgrade -y > /dev/null 2>&1
2019
echo "Installing curl..." && apt-get install curl jq -y > /dev/null 2>&1
2120
id raweb &>/dev/null || useradd -M -d /raweb -s /bin/bash raweb; mkdir -p /raweb; chown -R raweb:raweb /raweb; mkdir -p /var/tmp/raweb/body/
2221
# ====================================================================================
@@ -166,10 +165,6 @@ cp /usr/sbin/raweb-webserver "$DEB_ROOT/usr/sbin/"
166165
cp /raweb/apps/webserver/raweb.conf "$DEB_ROOT/raweb/apps/webserver/"
167166
chmod +x "$DEB_ROOT/usr/sbin/raweb-webserver"
168167

169-
for lib in $(ldd /usr/sbin/raweb-webserver | grep "=> /" | awk '{print $3}'); do
170-
cp "$lib" "$DEB_ROOT/usr/lib/"
171-
done
172-
173168
cat > "$DEB_ROOT/etc/systemd/system/raweb-webserver.service" <<EOF
174169
[Unit]
175170
Description=Raweb Webserver
@@ -197,8 +192,8 @@ Section: web
197192
Priority: optional
198193
Architecture: $DEB_ARCH
199194
Maintainer: Julio S. <[email protected]>
200-
Depends: logrotate
201-
Description: Raweb Webserver (nginx) for Ubuntu $BUILD_CODE
195+
Depends: logrotate, libpcre2-8-0, libssl3, libxml2, libxslt1.1, libgd3, libgeoip1, libmaxminddb0, libcurl4, libc6, zlib1g, libbrotli1, libyajl2, libfuzzy2, liblmdb0, libre2-9, libc-ares2 libmodsecurity3
196+
Description: Raweb Webserver (nginx) for Debian $BUILD_CODE
202197
EOF
203198

204199
cat > "$DEB_ROOT/DEBIAN/postinst" <<'EOF'

.github/scripts/deb/ubuntu/22.04.sh

Lines changed: 0 additions & 299 deletions
This file was deleted.

.github/scripts/deb/ubuntu/24.04.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ else
1515
fi
1616
# ====================================================================================
1717
export DEBIAN_FRONTEND=noninteractive
18-
echo "Updating..." && apt-get update -y > /dev/null 2>&1
19-
echo "Upgrading..." && apt-get upgrade -y > /dev/null 2>&1
18+
echo "Updating..." && apt-get update -y > /dev/null 2>&1; apt-get upgrade -y > /dev/null 2>&1
2019
echo "Installing curl..." && apt-get install curl jq -y > /dev/null 2>&1
2120
id raweb &>/dev/null || useradd -M -d /raweb -s /bin/bash raweb; mkdir -p /raweb; chown -R raweb:raweb /raweb; mkdir -p /var/tmp/raweb/body/
2221
# ====================================================================================
@@ -166,10 +165,6 @@ cp /usr/sbin/raweb-webserver "$DEB_ROOT/usr/sbin/"
166165
cp /raweb/apps/webserver/raweb.conf "$DEB_ROOT/raweb/apps/webserver/"
167166
chmod +x "$DEB_ROOT/usr/sbin/raweb-webserver"
168167

169-
for lib in $(ldd /usr/sbin/raweb-webserver | grep "=> /" | awk '{print $3}'); do
170-
cp "$lib" "$DEB_ROOT/usr/lib/"
171-
done
172-
173168
cat > "$DEB_ROOT/etc/systemd/system/raweb-webserver.service" <<EOF
174169
[Unit]
175170
Description=Raweb Webserver
@@ -197,7 +192,7 @@ Section: web
197192
Priority: optional
198193
Architecture: $DEB_ARCH
199194
Maintainer: Julio S. <[email protected]>
200-
Depends: logrotate
195+
Depends: logrotate, libpcre2-8-0, libssl3, libxml2, libxslt1.1, libgd3, libgeoip1, libmaxminddb0, libcurl4, libc6, zlib1g, libbrotli1, libmodsecurity3
201196
Description: Raweb Webserver (nginx) for Ubuntu $BUILD_CODE
202197
EOF
203198

.github/scripts/rpm/alma/8.sh

Lines changed: 0 additions & 314 deletions
This file was deleted.

.github/scripts/rpm/alma/9.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if [ -z "$UPLOAD_USER" ] || [ -z "$UPLOAD_PASS" ]; then
55
echo "Missing UPLOAD_USER or UPLOAD_PASS"
66
exit 1
77
fi
8+
echo "Alma 9 is not working properly, anyone is welcome to test build and PR a fix"
9+
exit 0
810
# ====================================================================================
911
export CFLAGS="-fPIC"
1012
export CXXFLAGS="-fPIC"

.github/workflows/workflow.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8-
schedule:
9-
- cron: '0 0 1 * *'
108

119
jobs:
1210
build:
@@ -15,20 +13,26 @@ jobs:
1513
fail-fast: false
1614
matrix:
1715
include:
18-
1916
- name: alma9
2017
image: almalinux:9
2118
code: el9
2219
repo: alma
2320
folder: packages
2421
script: .github/scripts/rpm/alma/9.sh
2522

26-
- name: alma8
27-
image: almalinux:8
28-
code: el8
29-
repo: alma
23+
- name: debian12
24+
image: debian:12
25+
code: bookworm
26+
repo: debian
27+
folder: packages
28+
script: .github/scripts/deb/debian/12.sh
29+
30+
- name: ubuntu2404
31+
image: ubuntu:24.04
32+
code: noble
33+
repo: ubuntu
3034
folder: packages
31-
script: .github/scripts/rpm/alma/8.sh
35+
script: .github/scripts/deb/ubuntu/24.04.sh
3236

3337
container:
3438
image: ${{ matrix.image }}

README.md

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,28 @@
11
# nginx
22

3-
- Debian 12/11.
4-
- Ubuntu 24.04/22.04.
5-
- AlmaLinux 9/8.
3+
---
64

7-
Debian/Ubuntu.
8-
```bash
9-
apt update; apt-get -y upgrade; apt-get -y install wget apt-transport-https ca-certificates gnupg2 sudo
10-
echo "deb [arch=amd64 trusted=yes] https://repo.raweb.al/ $(cat /etc/os-release | grep VERSION_CODENAME= | cut -d= -f2) main" | sudo tee /etc/apt/sources.list.d/raweb.list
11-
sudo apt update; sudo apt install -y raweb-webserver
5+
- [X] Debian 12.
6+
- [X] Ubuntu 24.04.
127

13-
```
8+
---
149

15-
AlmaLinux 9.
10+
Debian/Ubuntu step 1 add repository:
1611
```bash
17-
dnf -y update; dnf install -y wget ca-certificates gnupg2 epel-release sudo
18-
19-
sudo tee /etc/yum.repos.d/raweb.repo << 'EOF'
20-
[raweb-alma9]
21-
name=Raweb Panel Repository for AlmaLinux 9
22-
baseurl=https://repo.raweb.al/rpm/el9/x86_64
23-
enabled=1
24-
gpgcheck=0
25-
EOF
26-
27-
# Install
28-
sudo dnf makecache; sudo dnf -y install raweb-webserver
12+
apt update; apt-get -y upgrade; apt-get -y install wget apt-transport-https ca-certificates gnupg2 sudo
13+
echo "deb [arch=amd64 trusted=yes] https://repo.raweb.al/ $(cat /etc/os-release | grep VERSION_CODENAME= | cut -d= -f2) main" | sudo tee /etc/apt/sources.list.d/raweb.list
2914
```
3015

31-
AlmaLinux 8.
16+
Step 2 install webserver:
3217
```bash
33-
dnf -y update; dnf install -y wget ca-certificates gnupg2 epel-release sudo
34-
35-
sudo tee /etc/yum.repos.d/raweb.repo << 'EOF'
36-
[raweb-alma8]
37-
name=Raweb Panel Repository for AlmaLinux 8
38-
baseurl=https://repo.raweb.al/rpm/el8/x86_64
39-
enabled=1
40-
gpgcheck=0
41-
EOF
42-
43-
# Install
44-
sudo dnf makecache; sudo dnf -y install raweb-webserver
18+
sudo apt update; sudo apt install -y raweb-webserver
4519
```
4620

4721
---
22+
23+
## To-Do List
24+
25+
- [ ] Add support for Alma Linux 9.
26+
- [ ] Custom build libs to avoid conflicts with system libs.
27+
28+
---

0 commit comments

Comments
 (0)