* [gentoo-commits] gentoo-x86 commit in net-dialup/accel-ppp/files: accel-ppp.initd accel-ppp.confd accel-ppp-remove_obsolete_tbf_shaper.patch
@ 2013-01-03 21:32 Sergey Popov (pinkbyte)
0 siblings, 0 replies; only message in thread
From: Sergey Popov (pinkbyte) @ 2013-01-03 21:32 UTC (permalink / raw
To: gentoo-commits
pinkbyte 13/01/03 21:32:07
Added: accel-ppp.initd accel-ppp.confd
accel-ppp-remove_obsolete_tbf_shaper.patch
Log:
Initial commit, wrt bug #448054. Thanks to all, who helps writing ebuild and other stuff
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.1 net-dialup/accel-ppp/files/accel-ppp.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp.initd?rev=1.1&content-type=text/plain
Index: accel-ppp.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp.initd,v 1.1 2013/01/03 21:32:07 pinkbyte Exp $
extra_started_commands="reload"
depend() {
need net
}
check_dir() {
# Check for directory existance, try to create it(if it's not exist yet)
# and throw error if it can not be done.
# Parameters:
# $1 - directory to check
# $2 - error message
if [[ ! -d $1 ]]; then
mkdir "$1" 2>/dev/null
if [[ $? != 0 ]]; then
eerror "$2"
exit 1
fi
fi
}
start() {
# Create directory for PID file
local piddir=$(dirname ${PID})
check_dir "${piddir}" "Can not create directory $piddir for PID file"
# Create default directory for radius attributes
check_dir "${RADATTR_DIR}" "Can not create directory ${RADATTR_DIR} for radius attributes"
ebegin "Starting accel-pppd"
start-stop-daemon --start --quiet --exec /usr/sbin/accel-pppd -- ${ACCEL_PPPD_OPTS} -p ${PID}
eend $?
}
stop() {
ebegin "Stopping accel-pppd"
start-stop-daemon --stop --quiet --pidfile ${PID}
eend $?
}
reload() {
if [ ! -f ${PID} ]; then
eerror "accel-pppd isn't running"
return 1
fi
ebegin "Reloading configuration"
start-stop-daemon --signal USR1 --pidfile ${PID}
eend $?
}
1.1 net-dialup/accel-ppp/files/accel-ppp.confd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp.confd?rev=1.1&content-type=text/plain
Index: accel-ppp.confd
===================================================================
# Config file for /etc/init.d/accel-pppd
# Pid file
PID="/var/run/accel-ppp/accel-pppd.pid"
# Directory for radius attributes
RADATTR_DIR="/var/run/radattr"
# Daemon options
ACCEL_PPPD_OPTS="-d -c /etc/accel-ppp.conf"
1.1 net-dialup/accel-ppp/files/accel-ppp-remove_obsolete_tbf_shaper.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp-remove_obsolete_tbf_shaper.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dialup/accel-ppp/files/accel-ppp-remove_obsolete_tbf_shaper.patch?rev=1.1&content-type=text/plain
Index: accel-ppp-remove_obsolete_tbf_shaper.patch
===================================================================
diff --git a/accel-pppd/extra/CMakeLists.txt b/accel-pppd/extra/CMakeLists.txt
index 43ba367..2b69d1b 100644
--- a/accel-pppd/extra/CMakeLists.txt
+++ b/accel-pppd/extra/CMakeLists.txt
@@ -13,16 +13,6 @@ INSTALL(TARGETS pppd_compat ippool ipv6pool sigchld chap-secrets logwtmp connlim
LIBRARY DESTINATION lib/accel-ppp
)
-IF (SHAPER)
- ADD_LIBRARY(shaper_tbf SHARED shaper_tbf.c)
- IF (LIBNL_PREFIX)
- SET_PROPERTY(TARGET shaper_tbf PROPERTY COMPILE_FLAGS "-I${LIBNL_PREFIX}/include")
- SET_PROPERTY(TARGET shaper_tbf PROPERTY LINK_FLAGS "-L${LIBNL_PREFIX}/lib")
- ENDIF (LIBNL_PREFIX)
- TARGET_LINK_LIBRARIES(shaper_tbf nl m)
- INSTALL(TARGETS shaper_tbf LIBRARY DESTINATION lib/accel-ppp)
-ENDIF (SHAPER)
-
IF (NETSNMP)
ADD_SUBDIRECTORY(net-snmp)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-03 21:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03 21:32 [gentoo-commits] gentoo-x86 commit in net-dialup/accel-ppp/files: accel-ppp.initd accel-ppp.confd accel-ppp-remove_obsolete_tbf_shaper.patch Sergey Popov (pinkbyte)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox