Add phpbb
version update
This commit is contained in:
parent
862c0d9ec7
commit
5c12d1fb2a
23 changed files with 115 additions and 5 deletions
44
ressources/phpbb/debmaker
Executable file
44
ressources/phpbb/debmaker
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=3.3.8
|
||||
APP=phpbb
|
||||
DEPOT=https://github.com/phpbb/phpbb.git
|
||||
GIT_VERSION=release-$VERSION
|
||||
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=2
|
||||
PACKAGE_DEPENDENCY="php-simplexml php-curl php-zip"
|
||||
|
||||
STEP="base_package_upgrade install_package_dependency default_prebuild build makedeb"
|
||||
|
||||
build(){
|
||||
cd /tmp/${APP}/phpBB
|
||||
php ../composer.phar install -n
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
PATH_DEB_INSTALL=/tmp/src/rootfs-install
|
||||
|
||||
mv /tmp/${APP}/phpBB/install ${PATH_DEB_INSTALL}/usr/share/phpbb
|
||||
|
||||
cp -fr /tmp/${APP}/phpBB ${PATH_DEB}/usr/share/phpbb
|
||||
|
||||
touch ${PATH_DEB}/etc/${APP}/config.php
|
||||
ln -s /etc/${APP}/config.php ${PATH_DEB}/usr/share/phpbb/config.php
|
||||
|
||||
for tmp in ext files store images
|
||||
do
|
||||
mv ${PATH_DEB}/usr/share/phpbb/${tmp} ${PATH_DEB}/var/lib/phpbb/${tmp}
|
||||
ln -s /var/lib/phpbb/${tmp} ${PATH_DEB}/usr/share/phpbb/${tmp}
|
||||
done
|
||||
|
||||
mv ${PATH_DEB}/usr/share/phpbb/cache ${PATH_DEB}/var/lib/phpbb/cache
|
||||
ln -s /var/cache/phpbb ${PATH_DEB}/usr/share/phpbb/cache
|
||||
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB_INSTALL}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB_INSTALL} /tmp/dist
|
||||
}
|
0
ressources/phpbb/rootfs-install/DEBIAN/changelog
Normal file
0
ressources/phpbb/rootfs-install/DEBIAN/changelog
Normal file
7
ressources/phpbb/rootfs-install/DEBIAN/control
Normal file
7
ressources/phpbb/rootfs-install/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: phpbb-install
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: phpbb install folder
|
0
ressources/phpbb/rootfs-install/usr/share/phpbb/.keep
Normal file
0
ressources/phpbb/rootfs-install/usr/share/phpbb/.keep
Normal file
0
ressources/phpbb/rootfs/DEBIAN/changelog
Normal file
0
ressources/phpbb/rootfs/DEBIAN/changelog
Normal file
1
ressources/phpbb/rootfs/DEBIAN/conffiles
Normal file
1
ressources/phpbb/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/phpbb/config.php
|
7
ressources/phpbb/rootfs/DEBIAN/control
Normal file
7
ressources/phpbb/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: phpbb
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: phpbb
|
3
ressources/phpbb/rootfs/DEBIAN/postinst
Executable file
3
ressources/phpbb/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
chown www-data:www-data /var/lib/phpbb -R
|
||||
chown www-data:www-data /var/cache/phpbb -R
|
1
ressources/phpbb/rootfs/etc/phpbb/.gitkeep
Normal file
1
ressources/phpbb/rootfs/etc/phpbb/.gitkeep
Normal file
|
@ -0,0 +1 @@
|
|||
|
0
ressources/phpbb/rootfs/usr/share/.keep
Normal file
0
ressources/phpbb/rootfs/usr/share/.keep
Normal file
0
ressources/phpbb/rootfs/var/lib/phpbb/.keep
Normal file
0
ressources/phpbb/rootfs/var/lib/phpbb/.keep
Normal file
Loading…
Add table
Add a link
Reference in a new issue