mirror of
https://github.com/XRPLF/rippled.git
synced 2026-03-06 04:42:30 +00:00
Compare commits
1 Commits
a1q123456/
...
legleux/de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7f16c341c |
21
ci/packaging/debian/control
Normal file
21
ci/packaging/debian/control
Normal file
@@ -0,0 +1,21 @@
|
||||
Source: rippled
|
||||
Section: net
|
||||
Priority: optional
|
||||
Maintainer: Michael Legleux <mlegleux@ripple.com>
|
||||
Rules-Requires-Root: no
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
Standards-Version: 4.7.0
|
||||
Homepage: https://github.com/XRPLF/rippled
|
||||
Vcs-Git: https://github.com/XRPLF/rippled.git
|
||||
Vcs-Browser: https://github.com/XRPLF/rippled
|
||||
|
||||
Package: rippled
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: any
|
||||
Depends:
|
||||
${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Description: XRP Ledger server daemon
|
||||
XRPL server daemon providing ledger validation and p2p network services.
|
||||
11
ci/packaging/debian/rippled.install
Normal file
11
ci/packaging/debian/rippled.install
Normal file
@@ -0,0 +1,11 @@
|
||||
opt/ripple/bin/rippled
|
||||
|
||||
opt/ripple/etc/rippled.cfg
|
||||
opt/ripple/etc/validators.txt
|
||||
|
||||
# systemd unit (if you keep it in debian/ as a source file, do NOT list it here)
|
||||
# If instead you stage it into debian/tmp, uncomment:
|
||||
# lib/systemd/system/rippled.service
|
||||
|
||||
usr/share/doc/rippled/README.md
|
||||
usr/share/doc/rippled/LICENSE.md
|
||||
8
ci/packaging/debian/rippled.links
Normal file
8
ci/packaging/debian/rippled.links
Normal file
@@ -0,0 +1,8 @@
|
||||
/opt/ripple/bin/rippled /usr/bin/rippled
|
||||
/opt/ripple/etc/rippled.cfg /etc/opt/ripple/xrpld.cfg
|
||||
/opt/ripple/etc/validators.txt /etc/opt/ripple/validators.txt
|
||||
|
||||
# TODO: Remove when rippled deprecated
|
||||
/opt/ripple/bin/rippled /opt/ripple/bin/xrpld
|
||||
/opt/ripple/etc/rippled.cfg /etc/opt/ripple/xrpld.cfg
|
||||
/opt/ripple /opt/xrpld
|
||||
15
ci/packaging/debian/rippled.logrotate
Normal file
15
ci/packaging/debian/rippled.logrotate
Normal file
@@ -0,0 +1,15 @@
|
||||
/var/log/rippled/*.log {
|
||||
daily
|
||||
minsize 200M
|
||||
rotate 7
|
||||
nocreate
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
compresscmd /usr/bin/nice
|
||||
compressoptions -n19 ionice -c3 gzip
|
||||
compressext .gz
|
||||
postrotate
|
||||
/opt/ripple/bin/rippled --conf /opt/ripple/etc/rippled.cfg logrotate
|
||||
endscript
|
||||
}
|
||||
40
ci/packaging/debian/rippled.service
Normal file
40
ci/packaging/debian/rippled.service
Normal file
@@ -0,0 +1,40 @@
|
||||
[Unit]
|
||||
Description=XRPL daemon
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
|
||||
User=rippled
|
||||
Group=rippled
|
||||
|
||||
# Canonical config location (as you described)
|
||||
ExecStart=/opt/ripple/bin/rippled --conf /etc/opt/ripple/rippled.cfg
|
||||
|
||||
# Reasonable hardening defaults (trim if they break your runtime)
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ProtectControlGroups=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
LockPersonality=true
|
||||
RestrictRealtime=true
|
||||
RestrictSUIDSGID=true
|
||||
MemoryDenyWriteExecute=true
|
||||
SystemCallArchitectures=native
|
||||
|
||||
# Allow writes only where you actually need them
|
||||
ReadWritePaths=/var/lib/rippled /var/log/rippled
|
||||
|
||||
StateDirectory=rippled
|
||||
LogsDirectory=rippled
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=2s
|
||||
TimeoutStopSec=30s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
ci/packaging/debian/rippled.sysusers
Normal file
5
ci/packaging/debian/rippled.sysusers
Normal file
@@ -0,0 +1,5 @@
|
||||
u rippled - "XRPL Daemon" /var/lib/ripled
|
||||
|
||||
# Type Name ID GECOS Home Shell
|
||||
g rippled - - - -
|
||||
u rippled - "XRPL rippled" /var/lib/rippled /usr/sbin/nologin
|
||||
3
ci/packaging/debian/rippled.tmpfiles
Normal file
3
ci/packaging/debian/rippled.tmpfiles
Normal file
@@ -0,0 +1,3 @@
|
||||
# StateDirectory/LogsDirectory/RuntimeDirectory in systemd service makes this redundant but this enables apt purge.
|
||||
d /var/lib/rippled 0750 rippled rippled -
|
||||
d /var/log/rippled 0750 rippled rippled -
|
||||
42
ci/packaging/debian/rules
Normal file
42
ci/packaging/debian/rules
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export DH_VERBOSE = 1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_configure override_dh_auto_build override_dh_auto_test:
|
||||
@:
|
||||
|
||||
override_dh_auto_install:
|
||||
rm -rf debian/tmp
|
||||
mkdir -p debian/tmp/opt/ripple/bin
|
||||
mkdir -p debian/tmp/opt/ripple/etc
|
||||
mkdir -p debian/tmp/usr
|
||||
cp -a "$(INSTALL_TREE)/bin" debian/tmp/opt/ripple
|
||||
cp -a "$(INSTALL_TREE)/etc" debian/tmp/opt/ripple
|
||||
cp -a "$(INSTALL_TREE)/usr" debian/tmp
|
||||
rm -rf debian/tmp/usr/include
|
||||
rm -rf debian/tmp/usr/lib
|
||||
install -Dm0644 README.md debian/tmp/usr/share/doc/rippled/README.md
|
||||
install -Dm0644 LICENSE.md debian/tmp/usr/share/doc/rippled/LICENSE.md
|
||||
install -Dm0644 cfg/rippled-example.cfg debian/tmp/opt/ripple/etc/rippled.cfg
|
||||
install -Dm0644 cfg/validators-example.txt debian/tmp/opt/ripple/etc/validators.txt
|
||||
|
||||
override_dh_installsystemd:
|
||||
dh_installsystemd
|
||||
|
||||
override_dh_installsysusers:
|
||||
dh_installsysusers
|
||||
|
||||
override_dh_installtmpfiles:
|
||||
dh_installtmpfiles
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
|
||||
override_dh_dwz:
|
||||
@:
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip --no-automatic-dbgsym
|
||||
Reference in New Issue
Block a user