net-p2p/amule-dlp: switch 9999 to cmake
Because upstream rebased amule-dlp onto aMule master, which replaced autotools with CMake, rewrite the build phases after net-p2p/amule-9999 and drop the patches for the old build system. - IP2Country now uses libmaxminddb, so `geoip` depends on it instead of `dev-libs/geoip`. - The antiLeech reload handler sits inside the GeoIP block while its event table entry does not, so a patch fixes the `-geoip` build. - cmake/wx.cmake links libcurl when it finds it, and wxGTK[curl] always provides it, so add `net-misc/curl`. - Add OpenRC scripts for amuled and amuleweb, which src_install always referenced but were never committed. They follow the command_background/command_user form with conf.d defaults, run in /var/lib/amule, the home of acct-user/amule, and amuleweb reads its passwords from remote.conf instead of the command line. - Drop keepdir/fowners/fperms on /var/lib/amule: acct-user/amule creates that home first, so the merge never changed it. - Drop the pkg_postinst migration note for net-p2p/amule 2.3.2-r4, which never applies to amule-dlp. Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
5793cddac3
commit
1fc430662f
8 files changed
+184
-242
No files matched your search
@@ -1,10 +1,13 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
WX_GTK_VER="3.2-gtk3"
|
||||
|
||||
inherit wxwidgets xdg-utils git-r3
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit cmake flag-o-matic python-any-r1 wxwidgets xdg git-r3
|
||||
|
||||
DESCRIPTION="aMule with DLP patch, the all-platform eMule p2p client"
|
||||
HOMEPAGE="https://github.com/persmule/amule-dlp"
|
||||
EGIT_REPO_URI="https://github.com/persmule/amule-dlp"
|
||||
@@ -13,122 +16,90 @@ LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="daemon debug geoip nls remote stats upnp +X"
|
||||
|
||||
REQUIRED_USE="|| ( daemon remote X )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost:=
|
||||
dev-libs/crypto++:=
|
||||
net-misc/curl
|
||||
sys-libs/binutils-libs:0=
|
||||
sys-libs/readline:0=
|
||||
virtual/zlib
|
||||
x11-libs/wxGTK:${WX_GTK_VER}[X?]
|
||||
daemon? ( acct-user/amule )
|
||||
geoip? ( dev-libs/geoip )
|
||||
virtual/zlib:=
|
||||
x11-libs/wxGTK:${WX_GTK_VER}=[curl,X?]
|
||||
daemon? (
|
||||
acct-user/amule
|
||||
dev-libs/glib:2
|
||||
)
|
||||
geoip? ( dev-libs/libmaxminddb )
|
||||
nls? ( virtual/libintl )
|
||||
remote? (
|
||||
acct-user/amule
|
||||
media-libs/libpng:0=
|
||||
)
|
||||
stats? ( media-libs/gd:=[jpeg,png] )
|
||||
upnp? ( net-libs/libupnp:0 )
|
||||
upnp? ( net-libs/libupnp:0= )
|
||||
X? ( dev-libs/glib:2 )
|
||||
!net-p2p/amule
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( dev-util/desktop-file-utils )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
setup-wxwidgets
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eapply "${FILESDIR}"/amule-dlp-allow-autoconf.patch
|
||||
eapply "${FILESDIR}"/amule-dlp-fix-boost-1.87.patch
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
./autogen.sh || die
|
||||
fi
|
||||
}
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/amule-dlp-reload-antileech-without-geoip.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--with-denoise-level=0
|
||||
--with-wx-config="${WX_CONFIG}"
|
||||
--enable-amulecmd
|
||||
--with-boost
|
||||
$(use_enable debug)
|
||||
$(use_enable daemon amule-daemon)
|
||||
$(use_enable geoip)
|
||||
$(use_enable nls)
|
||||
$(use_enable remote webserver)
|
||||
$(use_enable stats cas)
|
||||
$(use_enable stats alcc)
|
||||
$(use_enable upnp)
|
||||
setup-wxwidgets
|
||||
|
||||
use debug || append-cppflags -DwxDEBUG_LEVEL=0
|
||||
CMAKE_BUILD_TYPE=$(usex debug Debug ${CMAKE_BUILD_TYPE})
|
||||
|
||||
local mycmakeargs=(
|
||||
-DAMULE_DLP=YES
|
||||
-DBUILD_ALCC=YES
|
||||
-DBUILD_ED2K=YES
|
||||
-DBUILD_ALC="$(usex X)"
|
||||
-DBUILD_AMULECMD="$(usex remote)"
|
||||
-DBUILD_DAEMON="$(usex daemon)"
|
||||
-DBUILD_CAS="$(usex stats)"
|
||||
-DBUILD_MONOLITHIC="$(usex X)"
|
||||
-DBUILD_TESTING=NO
|
||||
-DBUILD_WEBSERVER="$(usex remote)"
|
||||
-DENABLE_BFD=YES
|
||||
-DENABLE_IP2COUNTRY="$(usex geoip)"
|
||||
-DENABLE_NLS="$(usex nls)"
|
||||
-DENABLE_UPNP="$(usex upnp)"
|
||||
-DENABLE_VERSION_CHECK=NO
|
||||
)
|
||||
|
||||
if use X; then
|
||||
myconf+=(
|
||||
$(use_enable remote amule-gui)
|
||||
$(use_enable stats alc)
|
||||
$(use_enable stats wxcas)
|
||||
mycmakeargs+=(
|
||||
-DBUILD_REMOTEGUI="$(usex remote)"
|
||||
-DBUILD_WXCAS="$(usex stats)"
|
||||
)
|
||||
else
|
||||
myconf+=(
|
||||
--disable-monolithic
|
||||
--disable-amule-gui
|
||||
--disable-alc
|
||||
--disable-wxcas
|
||||
mycmakeargs+=(
|
||||
-DBUILD_REMOTEGUI=NO
|
||||
-DBUILD_WXCAS=NO
|
||||
)
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
cmake_src_install
|
||||
|
||||
if use daemon; then
|
||||
newconfd "${FILESDIR}"/amuled.confd-r1 amuled
|
||||
newconfd "${FILESDIR}"/amuled.confd amuled
|
||||
newinitd "${FILESDIR}"/amuled.initd amuled
|
||||
fi
|
||||
if use remote; then
|
||||
newconfd "${FILESDIR}"/amuleweb.confd-r1 amuleweb
|
||||
newconfd "${FILESDIR}"/amuleweb.confd amuleweb
|
||||
newinitd "${FILESDIR}"/amuleweb.initd amuleweb
|
||||
fi
|
||||
|
||||
if use daemon || use remote; then
|
||||
keepdir /var/lib/${PN}
|
||||
fowners amule:amule /var/lib/${PN}
|
||||
fperms 0750 /var/lib/${PN}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local ver
|
||||
|
||||
if use daemon || use remote; then
|
||||
for ver in ${REPLACING_VERSIONS}; do
|
||||
if ver_test ${ver} -lt "2.3.2-r4"; then
|
||||
elog "Default user under which amuled and amuleweb daemons are started"
|
||||
elog "have been changed from p2p to amule. Default home directory have been"
|
||||
elog "changed as well."
|
||||
echo
|
||||
elog "If you want to preserve old download/share location, you can create"
|
||||
elog "symlink /var/lib/amule/.aMule pointing to the old location and adjust"
|
||||
elog "files ownership *or* restore AMULEUSER and AMULEHOME variables in"
|
||||
elog "/etc/conf.d/{amuled,amuleweb} to the old values."
|
||||
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
use X && xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use X && xdg_desktop_database_update
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index f00c6956f..42d0bd052 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -28,11 +28,7 @@ AC_INIT([aMule-dlp], [2.3.3-dlp], [admin@amule.org])
|
||||
AM_INIT_AUTOMAKE
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
||||
|
||||
-AC_PREREQ(2.62)
|
||||
-
|
||||
-# autoconf 2.70 introduced some incompatibilities that will make the build fail
|
||||
-# As a "workaround" reject 2.70 and above for now.
|
||||
-m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.70]), [-1],, [m4_fatal([autoconf ]m4_defn([AC_AUTOCONF_VERSION])[ is known to not work with aMule. Please use 2.69 instead.])])
|
||||
+AC_PREREQ(2.59)
|
||||
|
||||
AC_CONFIG_SRCDIR([src/amule.cpp])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
@@ -1,143 +0,0 @@
|
||||
From d7255754423e91ade00ca6ba712e8e0e7ce53e67 Mon Sep 17 00:00:00 2001
|
||||
From: Luigi 'Comio' Mantellini <luigi.mantellini@gmail.com>
|
||||
Date: Mon, 16 Dec 2024 07:53:11 +0100
|
||||
Subject: [PATCH] Fix build with Boost 1.87 that removes deprecated asio
|
||||
methods
|
||||
|
||||
---
|
||||
src/LibSocketAsio.cpp | 31 +++++++++++++++----------------
|
||||
1 file changed, 15 insertions(+), 16 deletions(-)
|
||||
|
||||
diff --git a/src/LibSocketAsio.cpp b/src/LibSocketAsio.cpp
|
||||
index 5f8b026527..8e15c86351 100644
|
||||
--- a/src/LibSocketAsio.cpp
|
||||
+++ b/src/LibSocketAsio.cpp
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
using namespace boost::asio;
|
||||
using namespace boost::system; // for error_code
|
||||
-static io_service s_io_service;
|
||||
+static io_context s_io_service;
|
||||
|
||||
// Number of threads in the Asio thread pool
|
||||
const int CAsioService::m_numberOfThreads = 4;
|
||||
@@ -265,7 +265,7 @@ class CAsioSocketImpl
|
||||
AddDebugLogLineF(logAsio, CFormat(wxT("Write %d %s")) % nbytes % m_IP);
|
||||
m_sendBuffer = new char[nbytes];
|
||||
memcpy(m_sendBuffer, buf, nbytes);
|
||||
- m_strand.dispatch(boost::bind(& CAsioSocketImpl::DispatchWrite, this, nbytes));
|
||||
+ dispatch(m_strand, boost::bind(& CAsioSocketImpl::DispatchWrite, this, nbytes));
|
||||
m_ErrorCode = 0;
|
||||
return nbytes;
|
||||
}
|
||||
@@ -279,7 +279,7 @@ class CAsioSocketImpl
|
||||
if (m_sync || s_io_service.stopped()) {
|
||||
DispatchClose();
|
||||
} else {
|
||||
- m_strand.dispatch(boost::bind(& CAsioSocketImpl::DispatchClose, this));
|
||||
+ dispatch(m_strand, boost::bind(& CAsioSocketImpl::DispatchClose, this));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -538,7 +538,7 @@ class CAsioSocketImpl
|
||||
{
|
||||
m_readPending = true;
|
||||
m_readBufferContent = 0;
|
||||
- m_strand.dispatch(boost::bind(& CAsioSocketImpl::DispatchBackgroundRead, this));
|
||||
+ dispatch(m_strand, boost::bind(& CAsioSocketImpl::DispatchBackgroundRead, this));
|
||||
}
|
||||
|
||||
void PostReadEvent(int DEBUG_ONLY(from) )
|
||||
@@ -618,7 +618,7 @@ class CAsioSocketImpl
|
||||
uint32 m_readBufferContent;
|
||||
bool m_eventPending;
|
||||
char * m_sendBuffer;
|
||||
- io_service::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
+ io_context::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
deadline_timer m_timer;
|
||||
bool m_connected;
|
||||
bool m_closed;
|
||||
@@ -875,7 +875,7 @@ class CAsioSocketServerImpl : public ip::tcp::acceptor
|
||||
}
|
||||
// We were not successful. Try again.
|
||||
// Post the request to the event queue to make sure it doesn't get called immediately.
|
||||
- m_strand.post(boost::bind(& CAsioSocketServerImpl::StartAccept, this));
|
||||
+ post(m_strand, boost::bind(& CAsioSocketServerImpl::StartAccept, this));
|
||||
}
|
||||
|
||||
// The wrapper object
|
||||
@@ -886,7 +886,7 @@ class CAsioSocketServerImpl : public ip::tcp::acceptor
|
||||
CScopedPtr<CAsioSocketImpl> m_currentSocket;
|
||||
// Is there a socket available?
|
||||
bool m_socketAvailable;
|
||||
- io_service::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
+ io_context::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
};
|
||||
|
||||
|
||||
@@ -1021,7 +1021,7 @@ class CAsioUDPSocketImpl
|
||||
// Collect data, make a copy of the buffer's content
|
||||
CUDPData * recdata = new CUDPData(buf, nBytes, addr);
|
||||
AddDebugLogLineF(logAsio, CFormat(wxT("UDP SendTo %d to %s")) % nBytes % addr.IPAddress());
|
||||
- m_strand.dispatch(boost::bind(& CAsioUDPSocketImpl::DispatchSendTo, this, recdata));
|
||||
+ dispatch(m_strand, boost::bind(& CAsioUDPSocketImpl::DispatchSendTo, this, recdata));
|
||||
return nBytes;
|
||||
}
|
||||
|
||||
@@ -1035,7 +1035,7 @@ class CAsioUDPSocketImpl
|
||||
if (s_io_service.stopped()) {
|
||||
DispatchClose();
|
||||
} else {
|
||||
- m_strand.dispatch(boost::bind(& CAsioUDPSocketImpl::DispatchClose, this));
|
||||
+ dispatch(m_strand, boost::bind(& CAsioUDPSocketImpl::DispatchClose, this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1162,7 +1162,7 @@ class CAsioUDPSocketImpl
|
||||
ip::udp::socket * m_socket;
|
||||
CMuleUDPSocket * m_muleSocket;
|
||||
bool m_OK;
|
||||
- io_service::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
+ io_context::strand m_strand; // handle synchronisation in io_service thread pool
|
||||
deadline_timer m_timer;
|
||||
amuleIPV4Address m_address;
|
||||
|
||||
@@ -1254,7 +1254,7 @@ class CAsioServiceThread : public wxThread {
|
||||
void * Entry()
|
||||
{
|
||||
AddLogLineNS(CFormat(_("Asio thread %d started")) % m_threadNumber);
|
||||
- io_service::work worker(s_io_service); // keep io_service running
|
||||
+ auto worker = make_work_guard(s_io_service); // keep io_service running
|
||||
s_io_service.run();
|
||||
AddDebugLogLineN(logAsio, CFormat(wxT("Asio thread %d stopped")) % m_threadNumber);
|
||||
|
||||
@@ -1342,7 +1342,7 @@ bool amuleIPV4Address::Hostname(const wxString& name)
|
||||
// This is usually just an IP.
|
||||
std::string sname(unicode2char(name));
|
||||
error_code ec;
|
||||
- ip::address_v4 adr = ip::address_v4::from_string(sname, ec);
|
||||
+ ip::address_v4 adr = ip::make_address_v4(sname, ec);
|
||||
if (!ec) {
|
||||
m_endpoint->address(adr);
|
||||
return true;
|
||||
@@ -1353,17 +1353,16 @@ bool amuleIPV4Address::Hostname(const wxString& name)
|
||||
error_code ec2;
|
||||
ip::tcp::resolver res(s_io_service);
|
||||
// We only want to get IPV4 addresses.
|
||||
- ip::tcp::resolver::query query(ip::tcp::v4(), sname, "");
|
||||
- ip::tcp::resolver::iterator endpoint_iterator = res.resolve(query, ec2);
|
||||
+ ip::tcp::resolver::results_type endpoint_iterator = res.resolve(sname, "", ec2);
|
||||
if (ec2) {
|
||||
AddDebugLogLineN(logAsio, CFormat(wxT("Hostname(\"%s\") resolve failed: %s")) % name % ec2.message());
|
||||
return false;
|
||||
}
|
||||
- if (endpoint_iterator == ip::tcp::resolver::iterator()) {
|
||||
+ if (endpoint_iterator == ip::tcp::resolver::results_type()) {
|
||||
AddDebugLogLineN(logAsio, CFormat(wxT("Hostname(\"%s\") resolve failed: no address found")) % name);
|
||||
return false;
|
||||
}
|
||||
- m_endpoint->address(endpoint_iterator->endpoint().address());
|
||||
+ m_endpoint->address(endpoint_iterator.begin()->endpoint().address());
|
||||
AddDebugLogLineN(logAsio, CFormat(wxT("Hostname(\"%s\") resolved to %s")) % name % IPAddress());
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
Declare and define PrefsUnifiedDlg::OnButtonReloadAntiLeech outside the
|
||||
ENABLE_IP2COUNTRY / GEOIP_GUI blocks, because the event table entry for
|
||||
IDC_RELOADANTILEECH is only guarded by AMULE_DLP and the build fails with
|
||||
ENABLE_IP2COUNTRY=NO.
|
||||
|
||||
diff --git a/src/PrefsUnifiedDlg.cpp b/src/PrefsUnifiedDlg.cpp
|
||||
index 0a5df2f..08532b7 100644
|
||||
--- a/src/PrefsUnifiedDlg.cpp
|
||||
+++ b/src/PrefsUnifiedDlg.cpp
|
||||
@@ -2296,9 +2296,6 @@ void PrefsUnifiedDlg::OnButtonIPFilterUpdate(wxCommandEvent &WXUNUSED(event))
|
||||
#endif
|
||||
}
|
||||
|
||||
-#ifdef GEOIP_GUI
|
||||
-PrefsUnifiedDlg *PrefsUnifiedDlg::s_activeInstance = NULL;
|
||||
-
|
||||
//Bill Lee
|
||||
#ifdef AMULE_DLP
|
||||
void PrefsUnifiedDlg::OnButtonReloadAntiLeech(wxCommandEvent& WXUNUSED(event)){
|
||||
@@ -2314,6 +2311,9 @@ void PrefsUnifiedDlg::OnButtonReloadAntiLeech(wxCommandEvent& WXUNUSED(event)){
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifdef GEOIP_GUI
|
||||
+PrefsUnifiedDlg *PrefsUnifiedDlg::s_activeInstance = NULL;
|
||||
+
|
||||
PrefsUnifiedDlg::~PrefsUnifiedDlg()
|
||||
{
|
||||
// Clear the active-instance pointer so the IP2Country download callback cannot poke a
|
||||
diff --git a/src/PrefsUnifiedDlg.h b/src/PrefsUnifiedDlg.h
|
||||
index 25e9c18..d5fbba3 100644
|
||||
--- a/src/PrefsUnifiedDlg.h
|
||||
+++ b/src/PrefsUnifiedDlg.h
|
||||
@@ -251,6 +251,9 @@ private:
|
||||
#ifdef ENABLE_IPV6
|
||||
void OnAddressFamiliesChange(wxCommandEvent &event);
|
||||
#endif
|
||||
+#ifdef AMULE_DLP
|
||||
+ void OnButtonReloadAntiLeech(wxCommandEvent &event); /* Dynamic Leech Protect - Bill Lee */
|
||||
+#endif
|
||||
#if defined(ENABLE_IP2COUNTRY) || defined(CLIENT_GUI)
|
||||
void OnGeoIPSourceChange(wxCommandEvent &event);
|
||||
void OnGeoIPUpdateNow(wxCommandEvent &event);
|
||||
@@ -267,10 +270,6 @@ private:
|
||||
// TransferToWindow.
|
||||
void UpdateGeoIPControlsEnabled();
|
||||
|
||||
-#ifdef AMULE_DLP
|
||||
- void OnButtonReloadAntiLeech(wxCommandEvent &event); /* Dynamic Leech Protect - Bill Lee */
|
||||
-#endif
|
||||
-
|
||||
private:
|
||||
// Set in the ctor / cleared in dtor so the IP2Country download
|
||||
// callback can find an open dialog without a global pointer chain.
|
||||
@@ -0,0 +1,13 @@
|
||||
# User, group and home directory of amuled. It reads its configuration
|
||||
# from ${AMULE_HOME}/.aMule/amule.conf.
|
||||
#AMULE_USER="amule"
|
||||
#AMULE_GROUP="amule"
|
||||
#AMULE_HOME="/var/lib/amule"
|
||||
|
||||
# amuled exits until external connections are enabled. Start it once to
|
||||
# create ${AMULE_HOME}/.aMule/amule.conf, then set in that file:
|
||||
# AcceptExternalConnections=1
|
||||
# ECPassword=<output of: printf %s 'password' | md5sum | cut -d' ' -f1>
|
||||
|
||||
# Additional options for amuled.
|
||||
#AMULED_OPTS=""
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
: ${AMULE_USER:=amule}
|
||||
: ${AMULE_GROUP:=amule}
|
||||
: ${AMULE_HOME:=/var/lib/amule}
|
||||
|
||||
command="/usr/bin/amuled"
|
||||
command_args="${AMULED_OPTS}"
|
||||
command_user="${AMULE_USER}:${AMULE_GROUP}"
|
||||
command_background=true
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
directory="${AMULE_HOME}"
|
||||
retry="TERM/60/KILL/5"
|
||||
|
||||
description="aMule eD2k and Kademlia daemon"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
export HOME="${AMULE_HOME}"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# User, group and home directory of amuleweb. It reads the external
|
||||
# connection settings and the web passwords from
|
||||
# ${AMULE_HOME}/.aMule/remote.conf.
|
||||
#AMULE_USER="amule"
|
||||
#AMULE_GROUP="amule"
|
||||
#AMULE_HOME="/var/lib/amule"
|
||||
|
||||
# Create remote.conf once with:
|
||||
# su -s /bin/sh -c 'HOME=/var/lib/amule amuleweb --write-config --host=localhost --port=4712 --password=<EC password> --admin-pass=<web password>' amule
|
||||
|
||||
# Additional options for amuleweb.
|
||||
#AMULEWEB_OPTS=""
|
||||
@@ -0,0 +1,27 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
: ${AMULE_USER:=amule}
|
||||
: ${AMULE_GROUP:=amule}
|
||||
: ${AMULE_HOME:=/var/lib/amule}
|
||||
|
||||
command="/usr/bin/amuleweb"
|
||||
command_args="${AMULEWEB_OPTS}"
|
||||
command_user="${AMULE_USER}:${AMULE_GROUP}"
|
||||
command_background=true
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
directory="${AMULE_HOME}"
|
||||
required_files="${AMULE_HOME}/.aMule/remote.conf"
|
||||
retry="TERM/60/KILL/5"
|
||||
|
||||
description="aMule web interface"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use amuled
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
export HOME="${AMULE_HOME}"
|
||||
}
|
||||
Reference in new issue
Block a user