update
This commit is contained in:
parent
01a7102f86
commit
03ffdc7e48
4 changed files with 39 additions and 3 deletions
9
compilators/debian/php/control
Normal file
9
compilators/debian/php/control
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Source: phyre-php
|
||||||
|
Package: phyre-php
|
||||||
|
Priority: optional
|
||||||
|
Version: 8.2.0
|
||||||
|
Section: web
|
||||||
|
Maintainer: CloudVision Ltd.
|
||||||
|
Homepage: https://www.phyrepanel.com
|
||||||
|
Architecture: amd64
|
||||||
|
Description: Phyre Panel PHP SDK
|
|
@ -23,9 +23,33 @@ sudo ./configure --prefix=/usr/local/phyre/php \
|
||||||
--with-zip \
|
--with-zip \
|
||||||
--enable-mbstring
|
--enable-mbstring
|
||||||
|
|
||||||
#sudo ./configure --prefix=/usr/local/phyre/php \
|
|
||||||
# --enable-fpm --with-fpm-user=admin --with-fpm-group=admin
|
|
||||||
|
|
||||||
# Compile PHP
|
# Compile PHP
|
||||||
sudo make
|
sudo make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
PACKAGE_MAIN_DIR=$MAIN_DIR/phyre-php-8.2.0
|
||||||
|
sudo mkdir $PACKAGE_MAIN_DIR
|
||||||
|
|
||||||
|
# Create debian package directories
|
||||||
|
sudo mkdir -p $PACKAGE_MAIN_DIR/DEBIAN
|
||||||
|
|
||||||
|
# Copy php compiled files
|
||||||
|
sudo mv /usr/local/phyre/php $PACKAGE_MAIN_DIR/usr/local/phyre
|
||||||
|
|
||||||
|
# Copy debian package META file
|
||||||
|
sudo cp $MAIN_DIR/control $PACKAGE_MAIN_DIR/DEBIAN
|
||||||
|
sudo cp $MAIN_DIR/postinst $PACKAGE_MAIN_DIR/DEBIAN
|
||||||
|
sudo cp $MAIN_DIR/postrm $PACKAGE_MAIN_DIR/DEBIAN
|
||||||
|
|
||||||
|
# Set debian package post files permissions
|
||||||
|
sudo chmod +x $PACKAGE_MAIN_DIR/DEBIAN/postinst
|
||||||
|
sudo chmod +x $PACKAGE_MAIN_DIR/DEBIAN/postrm
|
||||||
|
|
||||||
|
# Make debian package
|
||||||
|
sudo dpkg-deb --build $PACKAGE_MAIN_DIR
|
||||||
|
sudo dpkg --info $MAIN_DIR/phyre-php-8.2.0.deb
|
||||||
|
sudo dpkg --contents $MAIN_DIR/phyre-php-8.2.0.deb
|
||||||
|
|
||||||
|
# Move debian package to dist folder
|
||||||
|
sudo mkdir -p $MAIN_DIR/dist
|
||||||
|
sudo mv $MAIN_DIR/phyre-php-8.2.0.deb $MAIN_DIR/dist
|
||||||
|
|
1
compilators/debian/php/postinst
Normal file
1
compilators/debian/php/postinst
Normal file
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/bash
|
2
compilators/debian/php/postrm
Normal file
2
compilators/debian/php/postrm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
Loading…
Reference in a new issue