mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
Adds debian packaging
This commit is contained in:
parent
393ff81e69
commit
3e67dd3d2d
9
Makefile
9
Makefile
@ -17,3 +17,12 @@ debug:
|
||||
|
||||
clean:
|
||||
@$(make) -C src -f Makefile clean
|
||||
|
||||
deb:
|
||||
@$(make) -C src -f Makefile
|
||||
mkdir -p package/predixy_1.0.5-1_amd64/etc/predixy/conf.d
|
||||
mkdir -p package/predixy_1.0.5-1_amd64/usr/bin
|
||||
mkdir -p package/predixy_1.0.5-1_amd64/var/log/predixy
|
||||
cp src/predixy package/predixy_1.0.5-1_amd64/usr/bin
|
||||
cp -r conf/* package/predixy_1.0.5-1_amd64/etc/predixy/
|
||||
dpkg-deb --build package/predixy_1.0.5-1_amd64/
|
||||
|
||||
@ -48,6 +48,11 @@ For examples:
|
||||
$ make MT=false
|
||||
$ make debug MT=false TS=true
|
||||
|
||||
To build and create debian package:
|
||||
|
||||
$ make deb
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
Just copy src/predixy to the install path
|
||||
|
||||
6
package/predixy_1.0.5-1_amd64/DEBIAN/control
Executable file
6
package/predixy_1.0.5-1_amd64/DEBIAN/control
Executable file
@ -0,0 +1,6 @@
|
||||
Package: predixy
|
||||
Version: 1.0.5
|
||||
Architecture: amd64
|
||||
Maintainer: Drasrax <drasrax@vuln-scan.com>
|
||||
Description: Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster
|
||||
Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster
|
||||
2
package/predixy_1.0.5-1_amd64/DEBIAN/postinst
Executable file
2
package/predixy_1.0.5-1_amd64/DEBIAN/postinst
Executable file
@ -0,0 +1,2 @@
|
||||
systemctl daemon-reload
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
Unit]
|
||||
Description=Predixy
|
||||
After=network.target
|
||||
PartOf=prediy.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=redis
|
||||
Group=redis
|
||||
PrivateTmp=true
|
||||
ExecStart=/usr/bin/predixy /etc/predixy/predixy.conf
|
||||
[Install]
|
||||
WantedBy=multi-user.target predixy.target
|
||||
@ -0,0 +1,2 @@
|
||||
[Unit]
|
||||
Description=Predixy is a high performance and fully featured proxy for redis sentinel and redis clusterredis_auth: false
|
||||
Loading…
Reference in New Issue
Block a user