From 36c3040d45cf7bfcbccd9d3f6534179a330b5be2 Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 21 Mar 2017 11:53:16 +0000 Subject: [PATCH 01/45] atril.konum --- talimatname/genel/{balsa => }/atril/atril.kur-kos | 0 talimatname/genel/{balsa => }/atril/talimat | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename talimatname/genel/{balsa => }/atril/atril.kur-kos (100%) rename talimatname/genel/{balsa => }/atril/talimat (100%) diff --git a/talimatname/genel/balsa/atril/atril.kur-kos b/talimatname/genel/atril/atril.kur-kos similarity index 100% rename from talimatname/genel/balsa/atril/atril.kur-kos rename to talimatname/genel/atril/atril.kur-kos diff --git a/talimatname/genel/balsa/atril/talimat b/talimatname/genel/atril/talimat similarity index 100% rename from talimatname/genel/balsa/atril/talimat rename to talimatname/genel/atril/talimat From bb394ab5a4bc1533832184b3934714fdf500ccde Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 22 Mar 2017 23:02:28 +0200 Subject: [PATCH 02/45] squid.talimat --- talimatname/genel/squid/talimat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talimatname/genel/squid/talimat b/talimatname/genel/squid/talimat index 258aa11a6..5d329b452 100644 --- a/talimatname/genel/squid/talimat +++ b/talimatname/genel/squid/talimat @@ -1,4 +1,4 @@ -# Description: Fonksiyonel vwkil sunucu yazılımı +# Description: Fonksiyonel vekil sunucu yazılımı # URL: http://www.squid-cache.org # Packager: milisarge # Depends on: From 40e7e21171bc817494fc85f69381cc8c18bd9db5 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 22 Mar 2017 23:45:05 +0200 Subject: [PATCH 03/45] gerekli.start-stop-daemon.eklendi --- ayarlar/gerekli_programlar | 1 + ayarlar/gerekli_programlar_kde | 1 + 2 files changed, 2 insertions(+) diff --git a/ayarlar/gerekli_programlar b/ayarlar/gerekli_programlar index 2a6e83a0d..8f5f68548 100644 --- a/ayarlar/gerekli_programlar +++ b/ayarlar/gerekli_programlar @@ -1,4 +1,5 @@ grub +start-stop-daemon dejavu-ttf xorriso gtk-engines diff --git a/ayarlar/gerekli_programlar_kde b/ayarlar/gerekli_programlar_kde index 901a07241..da3400d88 100644 --- a/ayarlar/gerekli_programlar_kde +++ b/ayarlar/gerekli_programlar_kde @@ -1,4 +1,5 @@ grub +start-stop-daemon dejavu-ttf xorriso gtk-engines From bb627e298ad0d2c13823923cc59a472d764aa7ed Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 22 Mar 2017 23:48:57 +0200 Subject: [PATCH 04/45] start-stop-daemon.paketlendi --- talimatname/genel/start-stop-daemon/makefile | 12 + .../genel/start-stop-daemon/ornek_servis | 48 + .../start-stop-daemon/start-stop-daemon.8 | 381 ++++++ .../start-stop-daemon/start-stop-daemon.c | 1059 +++++++++++++++++ talimatname/genel/start-stop-daemon/talimat | 16 + 5 files changed, 1516 insertions(+) create mode 100644 talimatname/genel/start-stop-daemon/makefile create mode 100644 talimatname/genel/start-stop-daemon/ornek_servis create mode 100644 talimatname/genel/start-stop-daemon/start-stop-daemon.8 create mode 100644 talimatname/genel/start-stop-daemon/start-stop-daemon.c create mode 100644 talimatname/genel/start-stop-daemon/talimat diff --git a/talimatname/genel/start-stop-daemon/makefile b/talimatname/genel/start-stop-daemon/makefile new file mode 100644 index 000000000..976a01ab3 --- /dev/null +++ b/talimatname/genel/start-stop-daemon/makefile @@ -0,0 +1,12 @@ +CC = cc +CFLAGS += -g -Wall +PROGRAM = start-stop-daemon +SOURCES = start-stop-daemon.c + +$(PROGRAM): $(SOURCES) + $(CC) $(CFLAGS) -o $(@) $(SOURCES) + + +all: $(PROGRAM) +clean: ; rm -f $(PROGRAM) +force: clean all diff --git a/talimatname/genel/start-stop-daemon/ornek_servis b/talimatname/genel/start-stop-daemon/ornek_servis new file mode 100644 index 000000000..dad1ea465 --- /dev/null +++ b/talimatname/genel/start-stop-daemon/ornek_servis @@ -0,0 +1,48 @@ +#!/bin/sh + +# Derived from https://gist.github.com/sodik82/4f4aafdb52e84102b75d + +set -e +. /lib/lsb/init-functions + +# Must be a valid filename +NAME=foo +PIDFILE=/run/$NAME.pid + +# Full path to executable +DAEMON=/usr/local/bin/bar + +# Options +DAEMON_OPTS="--baz=quux" + +# User to run the command as +USER=www + + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + echo -n "Starting daemon: "$NAME + start-stop-daemon --start --quiet -b -m --pidfile $PIDFILE --chdir $WORK_DIR --chuid $USER --exec $DAEMON -- $DAEMON_OPTS + echo "." + ;; + stop) + echo -n "Stopping daemon: "$NAME + start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE + echo "." + ;; + restart) + echo -n "Restarting daemon: "$NAME + start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE + start-stop-daemon --start --quiet -b -m --pidfile $PIDFILE --chdir $WORK_DIR --chuid $USER --exec $DAEMON -- $DAEMON_OPTS + echo "." + ;; + status) + status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $? + ;; + + *) + echo "Usage: "$1" {start|stop|restart}" + exit 1 +esac diff --git a/talimatname/genel/start-stop-daemon/start-stop-daemon.8 b/talimatname/genel/start-stop-daemon/start-stop-daemon.8 new file mode 100644 index 000000000..deae6c6b0 --- /dev/null +++ b/talimatname/genel/start-stop-daemon/start-stop-daemon.8 @@ -0,0 +1,381 @@ +.\" dpkg manual page - start-stop-daemon(8) +.\" +.\" Copyright © 1999 Klee Dienes +.\" Copyright © 1999 Ben Collins +.\" Copyright © 2000-2001 Wichert Akkerman +.\" Copyright © 2002-2003 Adam Heath +.\" Copyright © 2004 Scott James Remnant +.\" Copyright © 2008-2015 Guillem Jover +.\" +.\" This is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation; either version 2 of the License, or +.\" (at your option) any later version. +.\" +.\" This is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +. +.TH start\-stop\-daemon 8 "2014-03-26" "Debian Project" "dpkg utilities" +.SH NAME +start\-stop\-daemon \- start and stop system daemon programs +. +.SH SYNOPSIS +.B start\-stop\-daemon +.RI [ option "...] " command +. +.SH DESCRIPTION +.B start\-stop\-daemon +is used to control the creation and termination of system-level processes. +Using one of the matching options, \fBstart\-stop\-daemon\fP +can be configured to find existing instances of a running process. +.PP +Note: unless +.B \-\-pid +or +.B \-\-pidfile +are specified, +.B start\-stop\-daemon +behaves similar to +.BR killall (1). +.B start\-stop\-daemon +will scan the process table looking for any processes which +match the process name, parent pid, uid, and/or gid (if specified). Any +matching process will prevent +.BR \-\-start +from starting the daemon. All matching processes will be sent the TERM +signal (or the one specified via \fB\-\-signal\fP or \fB\-\-retry\fP) if +.BR \-\-stop +is specified. For daemons which have long-lived children +which need to live through a +.BR \-\-stop , +you must specify a pidfile. +. +.SH COMMANDS +.TP +.BR \-S ", " \-\-start " [" \-\- "] \fIarguments\fP" +Check for the existence of a specified process. +If such a process exists, +.B start\-stop\-daemon +does nothing, and exits with error status 1 (0 if +.BR \-\-oknodo +is specified). +If such a process does not exist, it starts an +instance, using either the executable specified by +.B \-\-exec +or, if specified, by +.BR \-\-startas . +Any arguments given after +.BR \-\- +on the command line are passed unmodified to the program being +started. +.TP +.BR \-K ", " \-\-stop +Checks for the existence of a specified process. +If such a process exists, +.B start\-stop\-daemon +sends it the signal specified by +.BR \-\-signal , +and exits with error status 0. +If such a process does not exist, +.B start\-stop\-daemon +exits with error status 1 +(0 if +.BR \-\-oknodo +is specified). If +.B \-\-retry +is specified, then +.B start\-stop\-daemon +will check that the process(es) have terminated. +.TP +.BR \-T ", " \-\-status +Check for the existence of a specified process, and returns an exit status +code, according to the LSB Init Script Actions (since version 1.16.1). +.TP +.BR \-H ", " \-\-help +Show usage information and exit. +.TP +.BR \-V ", " \-\-version +Show the program version and exit. +. +.SH OPTIONS +.SS Matching options +.TP +.BR \-\-pid " \fIpid\fP" +Check for a process with the specified \fIpid\fP (since version 1.17.6). +The \fIpid\fP must be a number greater than 0. +.TP +.BR \-\-ppid " \fIppid\fP" +Check for a process with the specified parent pid \fIppid\fP +(since version 1.17.7). +The \fIppid\fP must be a number greater than 0. +.TP +.BR \-p ", " \-\-pidfile " \fIpid-file\fP" +Check whether a process has created the file \fIpid-file\fP. Note: using this +matching option alone might cause unintended processes to be acted on, if the +old process terminated without being able to remove the \fIpid-file\fP. +.TP +.BR \-x ", " \-\-exec " \fIexecutable\fP" +Check for processes that are instances of this \fIexecutable\fP. The +\fIexecutable\fP argument should be an absolute pathname. Note: this might +not work as intended with interpreted scripts, as the executable will point +to the interpreter. Take into account processes running from inside a chroot +will also be matched, so other match restrictions might be needed. +.TP +.BR \-n ", " \-\-name " \fIprocess-name\fP" +Check for processes with the name \fIprocess-name\fP. The \fIprocess-name\fP +is usually the process filename, but it could have been changed by the +process itself. Note: on most systems this information is retrieved from +the process comm name from the kernel, which tends to have a relatively +short length limit (assuming more than 15 characters is non-portable). +.TP +.BR \-u ", " \-\-user " \fIusername\fP|\fIuid\fP +Check for processes owned by the user specified by \fIusername\fP or +\fIuid\fP. Note: using this matching option alone will cause all processes +matching the user to be acted on. +. +.SS Generic options +.TP +.BR \-g ", " \-\-group " \fIgroup\fP|\fIgid\fP" +Change to \fIgroup\fP or \fIgid\fP when starting the process. +.TP +.BR \-s ", " \-\-signal " \fIsignal\fP" +With +.BR \-\-stop , +specifies the signal to send to processes being stopped (default TERM). +.TP +.BR \-R ", " \-\-retry " \fItimeout\fP|\fIschedule\fP" +With +.BR \-\-stop , +specifies that +.B start\-stop\-daemon +is to check whether the process(es) +do finish. It will check repeatedly whether any matching processes +are running, until none are. If the processes do not exit it will +then take further action as determined by the schedule. + +If +.I timeout +is specified instead of +.IR schedule , +then the schedule +.IB signal / timeout /KILL/ timeout +is used, where +.I signal +is the signal specified with +.BR \-\-signal . + +.I schedule +is a list of at least two items separated by slashes +.RB ( / ); +each item may be +.BI \- signal-number +or [\fB\-\fP]\fIsignal-name\fP, +which means to send that signal, +or +.IR timeout , +which means to wait that many seconds for processes to +exit, +or +.BR forever , +which means to repeat the rest of the schedule forever if +necessary. + +If the end of the schedule is reached and +.BR forever +is not specified, then +.B start\-stop\-daemon +exits with error status 2. +If a schedule is specified, then any signal specified +with +.B \-\-signal +is ignored. +.TP +.BR \-a ", " \-\-startas " \fIpathname\fP" +With +.BR \-\-start , +start the process specified by +.IR pathname . +If not specified, defaults to the argument given to +.BR \-\-exec . +.TP +.BR \-t ", " \-\-test +Print actions that would be taken and set appropriate return value, +but take no action. +.TP +.BR \-o ", " \-\-oknodo +Return exit status 0 instead of 1 if no actions are (would be) taken. +.TP +.BR \-q ", " \-\-quiet +Do not print informational messages; only display error messages. +.TP +.BR \-c ", " \-\-chuid " \fIusername\fR|\fIuid\fP[\fB:\fP\fIgroup\fR|\fIgid\fP]" +Change to this username/uid before starting the process. You can also +specify a group by appending a +.BR : , +then the group or gid in the same way +as you would for the \fBchown\fP(1) command (\fIuser\fP\fB:\fP\fIgroup\fP). +If a user is specified without a group, the primary GID for that user is used. +When using this option +you must realize that the primary and supplemental groups are set as well, +even if the +.B \-\-group +option is not specified. The +.B \-\-group +option is only for +groups that the user isn't normally a member of (like adding per process +group membership for generic users like +.BR nobody ). +.TP +.BR \-r ", " \-\-chroot " \fIroot\fP" +Chdir and chroot to +.I root +before starting the process. Please note that the pidfile is also written +after the chroot. +.TP +.BR \-d ", " \-\-chdir " \fIpath\fP" +Chdir to +.I path +before starting the process. This is done after the chroot if the +\fB\-r\fP|\fB\-\-chroot\fP option is set. When not specified, +.B start\-stop\-daemon +will chdir to the root directory before starting the process. +.TP +.BR \-b ", " \-\-background +Typically used with programs that don't detach on their own. This option +will force +.B start\-stop\-daemon +to fork before starting the process, and force it into the background. +.B Warning: start\-stop\-daemon +cannot check the exit status if the process fails to execute for +.B any +reason. This is a last resort, and is only meant for programs that either +make no sense forking on their own, or where it's not feasible to add the +code for them to do this themselves. +.TP +.BR \-C ", " \-\-no\-close +Do not close any file descriptor when forcing the daemon into the background +(since version 1.16.5). +Used for debugging purposes to see the process output, or to redirect file +descriptors to log the process output. +Only relevant when using \fB\-\-background\fP. +.TP +.BR \-N ", " \-\-nicelevel " \fIint\fP" +This alters the priority of the process before starting it. +.TP +.BR \-P ", " \-\-procsched " \fIpolicy\fP\fB:\fP\fIpriority\fP" +This alters the process scheduler policy and priority of the process before +starting it (since version 1.15.0). +The priority can be optionally specified by appending a \fB:\fP +followed by the value. The default \fIpriority\fP is 0. The currently +supported policy values are \fBother\fP, \fBfifo\fP and \fBrr\fP. +.TP +.BR \-I ", " \-\-iosched " \fIclass\fP\fB:\fP\fIpriority\fP" +This alters the IO scheduler class and priority of the process before starting +it (since version 1.15.0). +The priority can be optionally specified by appending a \fB:\fP followed +by the value. The default \fIpriority\fP is 4, unless \fIclass\fP is \fBidle\fP, +then \fIpriority\fP will always be 7. The currently supported values for +\fIclass\fP are \fBidle\fP, \fBbest-effort\fP and \fBreal-time\fP. +.TP +.BR \-k ", " \-\-umask " \fImask\fP" +This sets the umask of the process before starting it (since version 1.13.22). +.TP +.BR \-m ", " \-\-make\-pidfile +Used when starting a program that does not create its own pid file. This +option will make +.B start\-stop\-daemon +create the file referenced with +.B \-\-pidfile +and place the pid into it just before executing the process. Note, the +file will only be removed when stopping the program if +\fB\-\-remove\-pidfile\fP is used. +.B Note: +This feature may not work in all cases. Most notably when the program +being executed forks from its main process. Because of this, it is usually +only useful when combined with the +.B \-\-background +option. +.TP +.B \-\-remove\-pidfile +Used when stopping a program that does not remove its own pid file +(since version 1.17.19). +This option will make +.B start\-stop\-daemon +remove the file referenced with +.B \-\-pidfile +after terminating the process. +.TP +.BR \-v ", " \-\-verbose +Print verbose informational messages. +. +.SH EXIT STATUS +.TP +.B 0 +The requested action was performed. If +.B \-\-oknodo +was specified, it's also possible that nothing had to be done. +This can happen when +.B \-\-start +was specified and a matching process was already running, or when +.B \-\-stop +was specified and there were no matching processes. +.TP +.B 1 +If +.B \-\-oknodo +was not specified and nothing was done. +.TP +.B 2 +If +.B \-\-stop +and +.B \-\-retry +were specified, but the end of the schedule was reached and the processes were +still running. +.TP +.B 3 +Any other error. +.PP +When using the \fB\-\-status\fP command, the following status codes are +returned: +.TP +.B 0 +Program is running. +.TP +.B 1 +Program is not running and the pid file exists. +.TP +.B 3 +Program is not running. +.TP +.B 4 +Unable to determine program status. +. +.SH EXAMPLE +Start the \fBfood\fP daemon, unless one is already running (a process named +food, running as user food, with pid in food.pid): +.IP +.nf +start\-stop\-daemon \-\-start \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-startas /usr/sbin/food \\ + \-\-chuid food \-\- \-\-daemon +.fi +.PP +Send \fBSIGTERM\fP to \fBfood\fP and wait up to 5 seconds for it to stop: +.IP +.nf +start\-stop\-daemon \-\-stop \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-retry 5 +.fi +.PP +Demonstration of a custom schedule for stopping \fBfood\fP: +.IP +.nf +start\-stop\-daemon \-\-stop \-\-oknodo \-\-user food \-\-name food \\ + \-\-pidfile /run/food.pid \-\-retry=TERM/30/KILL/5 +.fi diff --git a/talimatname/genel/start-stop-daemon/start-stop-daemon.c b/talimatname/genel/start-stop-daemon/start-stop-daemon.c new file mode 100644 index 000000000..a749008bc --- /dev/null +++ b/talimatname/genel/start-stop-daemon/start-stop-daemon.c @@ -0,0 +1,1059 @@ +/* + * A rewrite of the original Debian's start-stop-daemon Perl script + * in C (faster - it is executed many times during system startup). + * + * Written by Marek Michalkiewicz , + * public domain. Based conceptually on start-stop-daemon.pl, by Ian + * Jackson . May be used and distributed + * freely for any purpose. Changes by Christian Schwarz + * , to make output conform to the Debian + * Console Message Standard, also placed in public domain. Minor + * changes by Klee Dienes , also placed in the Public + * Domain. + * + * Changes by Ben Collins , added --chuid, --background + * and --make-pidfile options, placed in public domain aswell. + * + * Port to OpenBSD by Sontri Tomo Huynh + * and Andreas Schuldei + * + * Changes by Ian Jackson: added --retry (and associated rearrangements). + * + * Modified for Gentoo rc-scripts by Donny Davies : + * I removed the BSD/Hurd/OtherOS stuff, added #include + * and stuck in a #define VERSION "1.9.18". Now it compiles without + * the whole automake/config.h dance. + */ + +#ifdef HAVE_LXC +#define _GNU_SOURCE +#include +#endif /* HAVE_LXC */ + +#include +#define VERSION "1.9.18" + +#define MIN_POLL_INTERVAL 20000 /*us*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +static int testmode = 0; +static int quietmode = 0; +static int exitnodo = 1; +static int start = 0; +static int stop = 0; +static int background = 0; +static int mpidfile = 0; +static int signal_nr = 15; +static const char *signal_str = NULL; +static int user_id = -1; +static int runas_uid = -1; +static int runas_gid = -1; +static const char *userspec = NULL; +static char *changeuser = NULL; +static const char *changegroup = NULL; +static char *changeroot = NULL; +static const char *cmdname = NULL; +static char *execname = NULL; +static char *startas = NULL; +static const char *pidfile = NULL; +static char what_stop[1024]; +static const char *schedule_str = NULL; +static const char *progname = ""; +static int nicelevel = 0; + +static struct stat exec_stat; + +struct pid_list { + struct pid_list *next; + pid_t pid; +}; + +static struct pid_list *found = NULL; +static struct pid_list *killed = NULL; + +struct schedule_item { + enum { sched_timeout, sched_signal, sched_goto, sched_forever } type; + int value; /* seconds, signal no., or index into array */ + /* sched_forever is only seen within parse_schedule and callees */ +}; + +static int schedule_length; +static struct schedule_item *schedule = NULL; + +LIST_HEAD(namespace_head, namespace); + +struct namespace { + LIST_ENTRY(namespace) list; + char *path; + int nstype; +}; + +static struct namespace_head namespace_head; + +static void *xmalloc(int size); +static void push(struct pid_list **list, pid_t pid); +static void do_help(void); +static void parse_options(int argc, char * const *argv); +static int pid_is_user(pid_t pid, uid_t uid); +static int pid_is_cmd(pid_t pid, const char *name); +static void check(pid_t pid); +static void do_pidfile(const char *name); +static void do_stop(int signal_nr, int quietmode, + int *n_killed, int *n_notkilled, int retry_nr); +static int pid_is_exec(pid_t pid, const struct stat *esb); + +#ifdef __GNUC__ +static void fatal(const char *format, ...) + __attribute__((noreturn, format(printf, 1, 2))); +static void badusage(const char *msg) + __attribute__((noreturn)); +#else +static void fatal(const char *format, ...); +static void badusage(const char *msg); +#endif + +/* This next part serves only to construct the TVCALC macro, which + * is used for doing arithmetic on struct timeval's. It works like this: + * TVCALC(result, expression); + * where result is a struct timeval (and must be an lvalue) and + * expression is the single expression for both components. In this + * expression you can use the special values TVELEM, which when fed a + * const struct timeval* gives you the relevant component, and + * TVADJUST. TVADJUST is necessary when subtracting timevals, to make + * it easier to renormalise. Whenver you subtract timeval elements, + * you must make sure that TVADJUST is added to the result of the + * subtraction (before any resulting multiplication or what have you). + * TVELEM must be linear in TVADJUST. + */ +typedef long tvselector(const struct timeval*); +static long tvselector_sec(const struct timeval *tv) { return tv->tv_sec; } +static long tvselector_usec(const struct timeval *tv) { return tv->tv_usec; } +#define TVCALC_ELEM(result, expr, sec, adj) \ +{ \ + const long TVADJUST = adj; \ + long (*const TVELEM)(const struct timeval*) = tvselector_##sec; \ + (result).tv_##sec = (expr); \ +} +#define TVCALC(result,expr) \ +do { \ + TVCALC_ELEM(result, expr, sec, (-1)); \ + TVCALC_ELEM(result, expr, usec, (+1000000)); \ + (result).tv_sec += (result).tv_usec / 1000000; \ + (result).tv_usec %= 1000000; \ +} while(0) + + +static void +fatal(const char *format, ...) +{ + va_list arglist; + + fprintf(stderr, "%s: ", progname); + va_start(arglist, format); + vfprintf(stderr, format, arglist); + va_end(arglist); + putc('\n', stderr); + exit(2); +} + + +static void * +xmalloc(int size) +{ + void *ptr; + + ptr = malloc(size); + if (ptr) + return ptr; + fatal("malloc(%d) failed", size); +} + +static void +xgettimeofday(struct timeval *tv) +{ + if (gettimeofday(tv,0) != 0) + fatal("gettimeofday failed: %s", strerror(errno)); +} + +static void +push(struct pid_list **list, pid_t pid) +{ + struct pid_list *p; + + p = xmalloc(sizeof(*p)); + p->next = *list; + p->pid = pid; + *list = p; +} + +static void +clear(struct pid_list **list) +{ + struct pid_list *here, *next; + + for (here = *list; here != NULL; here = next) { + next = here->next; + free(here); + } + + *list = NULL; +} + +static char * +next_dirname(const char *s) +{ + char *cur; + + cur = (char *)s; + + if (*cur != '\0') { + for (; *cur != '/'; ++cur) + if (*cur == '\0') + return cur; + + for (; *cur == '/'; ++cur) + ; + } + + return cur; +} + +static void +add_namespace(const char *path) +{ + int nstype; + char *nsdirname, *nsname, *cur; + struct namespace *namespace; + + cur = (char *)path; + nsdirname = nsname = ""; + + while ((cur = next_dirname(cur))[0] != '\0') { + nsdirname = nsname; + nsname = cur; + } + + if (!memcmp(nsdirname, "ipcns/", strlen("ipcns/"))) + nstype = CLONE_NEWIPC; + else if (!memcmp(nsdirname, "netns/", strlen("netns/"))) + nstype = CLONE_NEWNET; + else if (!memcmp(nsdirname, "utcns/", strlen("utcns/"))) + nstype = CLONE_NEWUTS; + else + badusage("invalid namepspace path"); + + namespace = xmalloc(sizeof(*namespace)); + namespace->path = (char *)path; + namespace->nstype = nstype; + LIST_INSERT_HEAD(&namespace_head, namespace, list); +} + +#ifdef HAVE_LXC +static void +set_namespaces() +{ + struct namespace *namespace; + int fd; + + LIST_FOREACH(namespace, &namespace_head, list) { + if ((fd = open(namespace->path, O_RDONLY)) == -1) + fatal("open namespace %s: %s", namespace->path, strerror(errno)); + if (setns(fd, namespace->nstype) == -1) + fatal("setns %s: %s", namespace->path, strerror(errno)); + } +} +#else +static void +set_namespaces() +{ + if (!LIST_EMPTY(&namespace_head)) + fatal("LCX namespaces not supported"); +} +#endif + +static void +do_help(void) +{ + printf( +"start-stop-daemon " VERSION " for Milis linux - small and fast C version written by\n" +"Marek Michalkiewicz , public domain.\n" +"Milis Linux milisarge@gmail.com .\n" +"\n" +"Usage:\n" +" start-stop-daemon -S|--start options ... -- arguments ...\n" +" start-stop-daemon -K|--stop options ...\n" +" start-stop-daemon -H|--help\n" +" start-stop-daemon -V|--version\n" +"\n" +"Options (at least one of --exec|--pidfile|--user is required):\n" +" -x|--exec program to start/check if it is running\n" +" -p|--pidfile pid file to check\n" +" -c|--chuid \n" +" change to this user/group before starting process\n" +" -u|--user | stop processes owned by this user\n" +" -n|--name stop processes with this name\n" +" -s|--signal signal to send (default TERM)\n" +" -a|--startas program to start (default is )\n" +" -N|--nicelevel add incr to the process's nice level\n" +" -b|--background force the process to detach\n" +" -m|--make-pidfile create the pidfile before starting\n" +" -R|--retry check whether processes die, and retry\n" +" -t|--test test mode, don't do anything\n" +" -o|--oknodo exit status 0 (not 1) if nothing done\n" +" -q|--quiet be more quiet\n" +" -v|--verbose be more verbose\n" +"Retry is |//... where is one of\n" +" -|[-] send that signal\n" +" wait that many seconds\n" +" forever repeat remainder forever\n" +"or may be just , meaning //KILL/\n" +"\n" +"Exit status: 0 = done 1 = nothing done (=> 0 if --oknodo)\n" +" 3 = trouble 2 = with --retry, processes wouldn't die\n"); +} + + +static void +badusage(const char *msg) +{ + if (msg) + fprintf(stderr, "%s: %s\n", progname, msg); + fprintf(stderr, "Try `%s --help' for more information.\n", progname); + exit(3); +} + +struct sigpair { + const char *name; + int signal; +}; + +const struct sigpair siglist[] = { + { "ABRT", SIGABRT }, + { "ALRM", SIGALRM }, + { "FPE", SIGFPE }, + { "HUP", SIGHUP }, + { "ILL", SIGILL }, + { "INT", SIGINT }, + { "KILL", SIGKILL }, + { "PIPE", SIGPIPE }, + { "QUIT", SIGQUIT }, + { "SEGV", SIGSEGV }, + { "TERM", SIGTERM }, + { "USR1", SIGUSR1 }, + { "USR2", SIGUSR2 }, + { "CHLD", SIGCHLD }, + { "CONT", SIGCONT }, + { "STOP", SIGSTOP }, + { "TSTP", SIGTSTP }, + { "TTIN", SIGTTIN }, + { "TTOU", SIGTTOU } +}; + +static int parse_integer (const char *string, int *value_r) { + unsigned long ul; + char *ep; + + if (!string[0]) + return -1; + + ul= strtoul(string,&ep,10); + if (ul > INT_MAX || *ep != '\0') + return -1; + + *value_r= ul; + return 0; +} + +static int parse_signal (const char *signal_str, int *signal_nr) +{ + unsigned int i; + + if (parse_integer(signal_str, signal_nr) == 0) + return 0; + + for (i = 0; i < sizeof (siglist) / sizeof (siglist[0]); i++) { + if (strcmp (signal_str, siglist[i].name) == 0) { + *signal_nr = siglist[i].signal; + return 0; + } + } + return -1; +} + +static void +parse_schedule_item(const char *string, struct schedule_item *item) { + const char *after_hyph; + + if (!strcmp(string,"forever")) { + item->type = sched_forever; + } else if (isdigit(string[0])) { + item->type = sched_timeout; + if (parse_integer(string, &item->value) != 0) + badusage("invalid timeout value in schedule"); + } else if ((after_hyph = string + (string[0] == '-')) && + parse_signal(after_hyph, &item->value) == 0) { + item->type = sched_signal; + } else { + badusage("invalid schedule item (must be [-], " + "-, or `forever'"); + } +} + +static void +parse_schedule(const char *schedule_str) { + char item_buf[20]; + const char *slash; + int count, repeatat; + ptrdiff_t str_len; + + count = 0; + for (slash = schedule_str; *slash; slash++) + if (*slash == '/') + count++; + + schedule_length = (count == 0) ? 4 : count+1; + schedule = xmalloc(sizeof(*schedule) * schedule_length); + + if (count == 0) { + schedule[0].type = sched_signal; + schedule[0].value = signal_nr; + parse_schedule_item(schedule_str, &schedule[1]); + if (schedule[1].type != sched_timeout) { + badusage ("--retry takes timeout, or schedule list" + " of at least two items"); + } + schedule[2].type = sched_signal; + schedule[2].value = SIGKILL; + schedule[3]= schedule[1]; + } else { + count = 0; + repeatat = -1; + while (schedule_str != NULL) { + slash = strchr(schedule_str,'/'); + str_len = slash ? slash - schedule_str : strlen(schedule_str); + if (str_len >= (ptrdiff_t)sizeof(item_buf)) + badusage("invalid schedule item: far too long" + " (you must delimit items with slashes)"); + memcpy(item_buf, schedule_str, str_len); + item_buf[str_len] = 0; + schedule_str = slash ? slash+1 : NULL; + + parse_schedule_item(item_buf, &schedule[count]); + if (schedule[count].type == sched_forever) { + if (repeatat >= 0) + badusage("invalid schedule: `forever'" + " appears more than once"); + repeatat = count; + continue; + } + count++; + } + if (repeatat >= 0) { + schedule[count].type = sched_goto; + schedule[count].value = repeatat; + count++; + } + assert(count == schedule_length); + } +} + +static void +parse_options(int argc, char * const *argv) +{ + static struct option longopts[] = { + { "help", 0, NULL, 'H'}, + { "stop", 0, NULL, 'K'}, + { "start", 0, NULL, 'S'}, + { "version", 0, NULL, 'V'}, + { "startas", 1, NULL, 'a'}, + { "name", 1, NULL, 'n'}, + { "oknodo", 0, NULL, 'o'}, + { "pidfile", 1, NULL, 'p'}, + { "quiet", 0, NULL, 'q'}, + { "signal", 1, NULL, 's'}, + { "test", 0, NULL, 't'}, + { "user", 1, NULL, 'u'}, + { "chroot", 1, NULL, 'r'}, + { "namespace", 1, NULL, 'd'}, + { "verbose", 0, NULL, 'v'}, + { "exec", 1, NULL, 'x'}, + { "chuid", 1, NULL, 'c'}, + { "nicelevel", 1, NULL, 'N'}, + { "background", 0, NULL, 'b'}, + { "make-pidfile", 0, NULL, 'm'}, + { "retry", 1, NULL, 'R'}, + { NULL, 0, NULL, 0} + }; + int c; + + for (;;) { + c = getopt_long(argc, argv, "HKSVa:n:op:qr:d:s:tu:vx:c:N:bmR:", + longopts, (int *) 0); + if (c == -1) + break; + switch (c) { + case 'H': /* --help */ + do_help(); + exit(0); + case 'K': /* --stop */ + stop = 1; + break; + case 'S': /* --start */ + start = 1; + break; + case 'V': /* --version */ + printf("start-stop-daemon " VERSION "\n"); + exit(0); + case 'a': /* --startas */ + startas = optarg; + break; + case 'n': /* --name */ + cmdname = optarg; + break; + case 'o': /* --oknodo */ + exitnodo = 0; + break; + case 'p': /* --pidfile */ + pidfile = optarg; + break; + case 'q': /* --quiet */ + quietmode = 1; + break; + case 's': /* --signal */ + signal_str = optarg; + break; + case 't': /* --test */ + testmode = 1; + break; + case 'u': /* --user | */ + userspec = optarg; + break; + case 'v': /* --verbose */ + quietmode = -1; + break; + case 'x': /* --exec */ + execname = optarg; + break; + case 'c': /* --chuid | */ + /* we copy the string just in case we need the + * argument later. */ + changeuser = strdup(optarg); + changeuser = strtok(changeuser, ":"); + changegroup = strtok(NULL, ":"); + break; + case 'r': /* --chroot /new/root */ + changeroot = optarg; + break; + case 'd': /* --namespace /.../||/name */ + add_namespace(optarg); + break; + case 'N': /* --nice */ + nicelevel = atoi(optarg); + break; + case 'b': /* --background */ + background = 1; + break; + case 'm': /* --make-pidfile */ + mpidfile = 1; + break; + case 'R': /* --retry | */ + schedule_str = optarg; + break; + default: + badusage(NULL); /* message printed by getopt */ + } + } + + if (signal_str != NULL) { + if (parse_signal (signal_str, &signal_nr) != 0) + badusage("signal value must be numeric or name" + " of signal (KILL, INTR, ...)"); + } + + if (schedule_str != NULL) { + parse_schedule(schedule_str); + } + + if (start == stop) + badusage("need one of --start or --stop"); + + if (!execname && !pidfile && !userspec && !cmdname) + badusage("need at least one of --exec, --pidfile, --user or --name"); + + if (!startas) + startas = execname; + + if (start && !startas) + badusage("--start needs --exec or --startas"); + + if (mpidfile && pidfile == NULL) + badusage("--make-pidfile is only relevant with --pidfile"); + + if (background && !start) + badusage("--background is only relevant with --start"); + +} + +static int +pid_is_exec(pid_t pid, const struct stat *esb) +{ + struct stat sb; + char buf[32]; + + sprintf(buf, "/proc/%d/exe", pid); + if (stat(buf, &sb) != 0) + return 0; + return (sb.st_dev == esb->st_dev && sb.st_ino == esb->st_ino); +} + + +static int +pid_is_user(pid_t pid, uid_t uid) +{ + struct stat sb; + char buf[32]; + + sprintf(buf, "/proc/%d", pid); + if (stat(buf, &sb) != 0) + return 0; + return (sb.st_uid == uid); +} + + +static int +pid_is_cmd(pid_t pid, const char *name) +{ + char buf[32]; + FILE *f; + int c; + + sprintf(buf, "/proc/%d/stat", pid); + f = fopen(buf, "r"); + if (!f) + return 0; + while ((c = getc(f)) != EOF && c != '(') + ; + if (c != '(') { + fclose(f); + return 0; + } + /* this hopefully handles command names containing ')' */ + while ((c = getc(f)) != EOF && c == *name) + name++; + fclose(f); + return (c == ')' && *name == '\0'); +} + + +static void +check(pid_t pid) +{ + if (execname && !pid_is_exec(pid, &exec_stat)) + return; + if (userspec && !pid_is_user(pid, user_id)) + return; + if (cmdname && !pid_is_cmd(pid, cmdname)) + return; + push(&found, pid); +} + +static void +do_pidfile(const char *name) +{ + FILE *f; + pid_t pid; + + f = fopen(name, "r"); + if (f) { + if (fscanf(f, "%d", &pid) == 1) + check(pid); + fclose(f); + } else if (errno != ENOENT) + fatal("open pidfile %s: %s", name, strerror(errno)); + +} + +/* WTA: this needs to be an autoconf check for /proc/pid existance. + */ +static void +do_procinit(void) +{ + DIR *procdir; + struct dirent *entry; + int foundany; + pid_t pid; + + procdir = opendir("/proc"); + if (!procdir) + fatal("opendir /proc: %s", strerror(errno)); + + foundany = 0; + while ((entry = readdir(procdir)) != NULL) { + if (sscanf(entry->d_name, "%d", &pid) != 1) + continue; + foundany++; + check(pid); + } + closedir(procdir); + if (!foundany) + fatal("nothing in /proc - not mounted?"); +} + +static void +do_findprocs(void) +{ + clear(&found); + + if (pidfile) + do_pidfile(pidfile); + else + do_procinit(); +} + +/* return 1 on failure */ +static void +do_stop(int signal_nr, int quietmode, int *n_killed, int *n_notkilled, int retry_nr) +{ + struct pid_list *p; + + do_findprocs(); + + *n_killed = 0; + *n_notkilled = 0; + + if (!found) + return; + + clear(&killed); + + for (p = found; p; p = p->next) { + if (testmode) + printf("Would send signal %d to %d.\n", + signal_nr, p->pid); + else if (kill(p->pid, signal_nr) == 0) { + push(&killed, p->pid); + (*n_killed)++; + } else { + printf("%s: warning: failed to kill %d: %s\n", + progname, p->pid, strerror(errno)); + (*n_notkilled)++; + } + } + if (quietmode < 0 && killed) { + printf("Stopped %s (pid", what_stop); + for (p = killed; p; p = p->next) + printf(" %d", p->pid); + putchar(')'); + if (retry_nr > 0) + printf(", retry #%d", retry_nr); + printf(".\n"); + } +} + + +static void +set_what_stop(const char *str) +{ + strncpy(what_stop, str, sizeof(what_stop)); + what_stop[sizeof(what_stop)-1] = '\0'; +} + +static int +run_stop_schedule(void) +{ + int r, position, n_killed, n_notkilled, value, ratio, anykilled, retry_nr; + struct timeval stopat, before, after, interval, maxinterval; + + if (testmode) { + if (schedule != NULL) { + printf("Ignoring --retry in test mode\n"); + schedule = NULL; + } + } + + if (cmdname) + set_what_stop(cmdname); + else if (execname) + set_what_stop(execname); + else if (pidfile) + sprintf(what_stop, "process in pidfile `%.200s'", pidfile); + else if (userspec) + sprintf(what_stop, "process(es) owned by `%.200s'", userspec); + else + fatal("internal error, please report"); + + anykilled = 0; + retry_nr = 0; + + if (schedule == NULL) { + do_stop(signal_nr, quietmode, &n_killed, &n_notkilled, 0); + if (n_notkilled > 0 && quietmode <= 0) + printf("%d pids were not killed\n", n_notkilled); + if (n_killed) + anykilled = 1; + goto x_finished; + } + + for (position = 0; position < schedule_length; ) { + value= schedule[position].value; + n_notkilled = 0; + + switch (schedule[position].type) { + + case sched_goto: + position = value; + continue; + + case sched_signal: + do_stop(value, quietmode, &n_killed, &n_notkilled, retry_nr++); + if (!n_killed) + goto x_finished; + else + anykilled = 1; + goto next_item; + + case sched_timeout: + /* We want to keep polling for the processes, to see if they've exited, + * or until the timeout expires. + * + * This is a somewhat complicated algorithm to try to ensure that we + * notice reasonably quickly when all the processes have exited, but + * don't spend too much CPU time polling. In particular, on a fast + * machine with quick-exiting daemons we don't want to delay system + * shutdown too much, whereas on a slow one, or where processes are + * taking some time to exit, we want to increase the polling + * interval. + * + * The algorithm is as follows: we measure the elapsed time it takes + * to do one poll(), and wait a multiple of this time for the next + * poll. However, if that would put us past the end of the timeout + * period we wait only as long as the timeout period, but in any case + * we always wait at least MIN_POLL_INTERVAL (20ms). The multiple + * (`ratio') starts out as 2, and increases by 1 for each poll to a + * maximum of 10; so we use up to between 30% and 10% of the + * machine's resources (assuming a few reasonable things about system + * performance). + */ + xgettimeofday(&stopat); + stopat.tv_sec += value; + ratio = 1; + for (;;) { + xgettimeofday(&before); + if (timercmp(&before,&stopat,>)) + goto next_item; + + do_stop(0, 1, &n_killed, &n_notkilled, 0); + if (!n_killed) + goto x_finished; + + xgettimeofday(&after); + + if (!timercmp(&after,&stopat,<)) + goto next_item; + + if (ratio < 10) + ratio++; + + TVCALC(interval, ratio * (TVELEM(&after) - TVELEM(&before) + TVADJUST)); + TVCALC(maxinterval, TVELEM(&stopat) - TVELEM(&after) + TVADJUST); + + if (timercmp(&interval,&maxinterval,>)) + interval = maxinterval; + + if (interval.tv_sec == 0 && + interval.tv_usec <= MIN_POLL_INTERVAL) + interval.tv_usec = MIN_POLL_INTERVAL; + + r = select(0,0,0,0,&interval); + if (r < 0 && errno != EINTR) + fatal("select() failed for pause: %s", + strerror(errno)); + } + + default: + assert(!"schedule[].type value must be valid"); + + } + + next_item: + position++; + } + + if (quietmode <= 0) + printf("Program %s, %d process(es), refused to die.\n", + what_stop, n_killed); + + return 2; + +x_finished: + if (!anykilled) { + if (quietmode <= 0) + printf("No %s found running; none killed.\n", what_stop); + return exitnodo; + } else { + return 0; + } +} + +/* +int main(int argc, char **argv) NONRETURNING; +*/ + +int +main(int argc, char **argv) +{ + progname = argv[0]; + + LIST_INIT(&namespace_head); + + parse_options(argc, argv); + argc -= optind; + argv += optind; + + if (execname && stat(execname, &exec_stat)) + fatal("stat %s: %s", execname, strerror(errno)); + + if (userspec && sscanf(userspec, "%d", &user_id) != 1) { + struct passwd *pw; + + pw = getpwnam(userspec); + if (!pw) + fatal("user `%s' not found\n", userspec); + + user_id = pw->pw_uid; + } + + if (changegroup && sscanf(changegroup, "%d", &runas_gid) != 1) { + struct group *gr = getgrnam(changegroup); + if (!gr) + fatal("group `%s' not found\n", changegroup); + runas_gid = gr->gr_gid; + } + if (changeuser && sscanf(changeuser, "%d", &runas_uid) != 1) { + struct passwd *pw = getpwnam(changeuser); + if (!pw) + fatal("user `%s' not found\n", changeuser); + runas_uid = pw->pw_uid; + if (changegroup == NULL) { /* pass the default group of this user */ + changegroup = ""; /* just empty */ + runas_gid = pw->pw_gid; + } + } + + if (stop) { + int i = run_stop_schedule(); + exit(i); + } + + do_findprocs(); + + if (found) { + if (quietmode <= 0) + printf("%s already running.\n", execname); + exit(exitnodo); + } + if (testmode) { + printf("Would start %s ", startas); + while (argc-- > 0) + printf("%s ", *argv++); + if (changeuser != NULL) { + printf(" (as user %s[%d]", changeuser, runas_uid); + if (changegroup != NULL) + printf(", and group %s[%d])", changegroup, runas_gid); + else + printf(")"); + } + if (changeroot != NULL) + printf(" in directory %s", changeroot); + if (nicelevel) + printf(", and add %i to the priority", nicelevel); + printf(".\n"); + exit(0); + } + if (quietmode < 0) + printf("Starting %s...\n", startas); + *--argv = startas; + if (changeroot != NULL) { + if (chdir(changeroot) < 0) + fatal("Unable to chdir() to %s", changeroot); + if (chroot(changeroot) < 0) + fatal("Unable to chroot() to %s", changeroot); + } + if (changeuser != NULL) { + if (setgid(runas_gid)) + fatal("Unable to set gid to %d", runas_gid); + if (initgroups(changeuser, runas_gid)) + fatal("Unable to set initgroups() with gid %d", runas_gid); + if (setuid(runas_uid)) + fatal("Unable to set uid to %s", changeuser); + } + + if (background) { /* ok, we need to detach this process */ + int i, fd; + if (quietmode < 0) + printf("Detatching to start %s...", startas); + i = fork(); + if (i<0) { + fatal("Unable to fork.\n"); + } + if (i) { /* parent */ + if (quietmode < 0) + printf("done.\n"); + exit(0); + } + /* child continues here */ + /* now close all extra fds */ + for (i=getdtablesize()-1; i>=0; --i) close(i); + /* change tty */ + fd = open("/dev/tty", O_RDWR); + ioctl(fd, TIOCNOTTY, 0); + close(fd); + chdir("/"); + umask(022); /* set a default for dumb programs */ + setpgid(0,0); /* set the process group */ + fd=open("/dev/null", O_RDWR); /* stdin */ + dup(fd); /* stdout */ + dup(fd); /* stderr */ + } + if (nicelevel) { + errno = 0; + if (nice(nicelevel) < 0 && errno) + fatal("Unable to alter nice level by %i: %s", nicelevel, + strerror(errno)); + } + if (mpidfile && pidfile != NULL) { /* user wants _us_ to make the pidfile :) */ + FILE *pidf = fopen(pidfile, "w"); + pid_t pidt = getpid(); + if (pidf == NULL) + fatal("Unable to open pidfile `%s' for writing: %s", pidfile, + strerror(errno)); + fprintf(pidf, "%d\n", pidt); + fclose(pidf); + } + set_namespaces(); + execv(startas, argv); + fatal("Unable to start %s: %s", startas, strerror(errno)); +} diff --git a/talimatname/genel/start-stop-daemon/talimat b/talimatname/genel/start-stop-daemon/talimat new file mode 100644 index 000000000..c840d9488 --- /dev/null +++ b/talimatname/genel/start-stop-daemon/talimat @@ -0,0 +1,16 @@ +# Description: sistem servislerinin kontrol programı +# URL: http://man7.org/linux/man-pages/man8/start-stop-daemon.8.html +# Packager: milisarge +# Depends on: + +name=start-stop-daemon +version=1.0 +release=1 +source=(start-stop-daemon.c start-stop-daemon.8 ornek_servis makefile) + +build () { + make + install -d $PKG/{sbin,usr/share/man/man8} + install -m 755 $name $PKG/sbin/ + install -m 644 $name.8 $PKG/usr/share/man/man8/ +} From 1780b293272694c248162a234460d19061bdb579 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 00:07:38 +0200 Subject: [PATCH 05/45] servis.eklendi --- bin/servis | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/servis diff --git a/bin/servis b/bin/servis new file mode 100755 index 000000000..7153e9ebb --- /dev/null +++ b/bin/servis @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "kullanım: servis start|stop|restart" + exit 1 +fi + +if [ ! -f /etc/init.d/$1 ]; then + echo "$1 servisi bulunamadı." + exit 1 +fi + +/etc/init.d/$1 $2 From 8f608602f4e923b32a200de9354da0d583e08557 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 01:51:20 +0200 Subject: [PATCH 06/45] iptables_sifirla --- bin/iptables_sifirla | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 bin/iptables_sifirla diff --git a/bin/iptables_sifirla b/bin/iptables_sifirla new file mode 100755 index 000000000..217a407d7 --- /dev/null +++ b/bin/iptables_sifirla @@ -0,0 +1,27 @@ +# IPv6 + + ## + ## set default policies to let everything in + ip6tables --policy INPUT ACCEPT; + ip6tables --policy OUTPUT ACCEPT; + ip6tables --policy FORWARD ACCEPT; + + ## + ## start fresh + ip6tables -Z; # zero counters + ip6tables -F; # flush (delete) rules + ip6tables -X; # delete all extra chains + +# IPv4 + + ## + ## set default policies to let everything in + iptables --policy INPUT ACCEPT; + iptables --policy OUTPUT ACCEPT; + iptables --policy FORWARD ACCEPT; + + ## + ## start fresh + iptables -Z; # zero counters + iptables -F; # flush (delete) rules + iptables -X; # delete all extra chains From e6732e54d43bf441375582a1560aada6eb7b960f Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 22:29:31 +0200 Subject: [PATCH 07/45] ffmpegthumnailer.duzenleme --- talimatname/genel/ffmpegthumbnailer/talimat | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/talimatname/genel/ffmpegthumbnailer/talimat b/talimatname/genel/ffmpegthumbnailer/talimat index 0dabd8239..949a46a26 100644 --- a/talimatname/genel/ffmpegthumbnailer/talimat +++ b/talimatname/genel/ffmpegthumbnailer/talimat @@ -9,16 +9,16 @@ release=1 source=(https://github.com/dirkvdb/$name/archive/$version.tar.gz) build() { -cd $name-$version -mkdir -p build -cd build -cmake .. \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DENABLE_GIO=ON \ - -DENABLE_THUMBNAILER=ON + cd $name-$version + mkdir -p build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DENABLE_GIO=ON \ + -DENABLE_THUMBNAILER=ON -make -make DESTDIR=$PKG install + make + make DESTDIR=$PKG install } From 71cc364c98fdade4af32729433e448652dc43c37 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 22:31:08 +0200 Subject: [PATCH 08/45] gerekli.eklendi --- ayarlar/gerekli_programlar_kde | 1 + 1 file changed, 1 insertion(+) diff --git a/ayarlar/gerekli_programlar_kde b/ayarlar/gerekli_programlar_kde index da3400d88..fbb395220 100644 --- a/ayarlar/gerekli_programlar_kde +++ b/ayarlar/gerekli_programlar_kde @@ -31,4 +31,5 @@ os-prober openjdk flashplayer xdg-user-dirs +ffmpegthumbnailer komutan From e9417dc7422b9c4bd7f0de1b3cffc70de3eb2786 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 22:34:57 +0200 Subject: [PATCH 09/45] gerekli_programlar_lxqt --- ayarlar/gerekli_programlar_kde | 1 - ayarlar/gerekli_programlar_lxqt | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 ayarlar/gerekli_programlar_lxqt diff --git a/ayarlar/gerekli_programlar_kde b/ayarlar/gerekli_programlar_kde index fbb395220..da3400d88 100644 --- a/ayarlar/gerekli_programlar_kde +++ b/ayarlar/gerekli_programlar_kde @@ -31,5 +31,4 @@ os-prober openjdk flashplayer xdg-user-dirs -ffmpegthumbnailer komutan diff --git a/ayarlar/gerekli_programlar_lxqt b/ayarlar/gerekli_programlar_lxqt new file mode 100644 index 000000000..8d296f1b1 --- /dev/null +++ b/ayarlar/gerekli_programlar_lxqt @@ -0,0 +1,38 @@ +grub +start-stop-daemon +dejavu-ttf +xorriso +gtk-engines +gtk-engine-murrine +cups-filters +gvfs +gutenprint +gimp +udevil +net-tools +qemu-all +yad +cdrkit +scrot +lsof +syslinux +network-manager-applet +rdesktop +firefox +gparted +sshfs-fuse +vlc +libreoffice +sysv-rc-conf +rfkill +samba +dosfstools +os-prober +openjdk +flashplayer +xdg-user-dirs +ffmpegthumbnailer +unrar +xreader +file-roller +komutan From d24207ba1735f906339607dab509dd4a93596806 Mon Sep 17 00:00:00 2001 From: milisarge Date: Fri, 24 Mar 2017 12:36:09 +0200 Subject: [PATCH 10/45] tsocks.paketlendi --- .../genel/tsocks/fix-mkinstalldirs.patch | 12 ++++++++++ talimatname/genel/tsocks/talimat | 23 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 talimatname/genel/tsocks/fix-mkinstalldirs.patch create mode 100644 talimatname/genel/tsocks/talimat diff --git a/talimatname/genel/tsocks/fix-mkinstalldirs.patch b/talimatname/genel/tsocks/fix-mkinstalldirs.patch new file mode 100644 index 000000000..70465cbc8 --- /dev/null +++ b/talimatname/genel/tsocks/fix-mkinstalldirs.patch @@ -0,0 +1,12 @@ +--- a/Makefile.in 2014-09-23 16:50:30.336402163 +0200 ++++ b/Makefile.in 2013-06-28 18:04:10.000000000 +0200 +@@ -12,7 +12,7 @@ + includedir = @includedir@ + + SHELL = /bin/sh +-MKINSTALLDIRS = ${SHELL} mkinstalldirs ++MKINSTALLDIRS = mkdir -p + SHCC = ${CC} -fPIC + INSPECT = inspectsocks + SAVE = saveme + diff --git a/talimatname/genel/tsocks/talimat b/talimatname/genel/tsocks/talimat new file mode 100644 index 000000000..7ed824896 --- /dev/null +++ b/talimatname/genel/tsocks/talimat @@ -0,0 +1,23 @@ +# Description: Transparan SOCKS vekil kütüphanesi (ipv6 destekli) +# URL: https://github.com/Elysion-tcfa/tsocks +# Packager: milisarge +# Depends on: + +name=tsocks +version=1.8beta6 +release=1 +GIT_COMMIT=be36c83a7326c75123fa019a4cb53792ecd8f689 + +source=(https://github.com/Elysion-tcfa/tsocks/archive/${GIT_COMMIT}.tar.gz + fix-mkinstalldirs.patch) + +build(){ + cd "${SRC}/tsocks-${GIT_COMMIT}" + export CPPFLAGS= + patch -p1 < ../fix-mkinstalldirs.patch + ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --libdir=/usr/lib + make + make DESTDIR="${PKG}" install + install -d "${PKG}/usr/share/${name}" + install -m644 tsocks.conf.{simple,complex}.example "${PKG}/usr/share/${name}" +} From f16c2cff78a4c617e0b3859d51914837ccfac4fa Mon Sep 17 00:00:00 2001 From: milisarge Date: Fri, 24 Mar 2017 22:50:29 +0200 Subject: [PATCH 11/45] iptables.kurkos.eklendi --- talimatname/genel/iptables/iptables.kur-kos | 1 + talimatname/genel/iptables/iptables.rc | 84 +++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 talimatname/genel/iptables/iptables.kur-kos create mode 100755 talimatname/genel/iptables/iptables.rc diff --git a/talimatname/genel/iptables/iptables.kur-kos b/talimatname/genel/iptables/iptables.kur-kos new file mode 100644 index 000000000..fed8f7566 --- /dev/null +++ b/talimatname/genel/iptables/iptables.kur-kos @@ -0,0 +1 @@ +cp iptables.rc /etc/rc.d/init.d/iptables diff --git a/talimatname/genel/iptables/iptables.rc b/talimatname/genel/iptables/iptables.rc new file mode 100755 index 000000000..cc3f891a6 --- /dev/null +++ b/talimatname/genel/iptables/iptables.rc @@ -0,0 +1,84 @@ +#!/bin/sh +######################################################################## +# Begin iptables +# +# Description : Start iptables +# +# Authors : Ken Moffat - ken@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: iptables +# Required-Start: +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: +# Short-Description: Loads iptables rules. +# Description: Iptables provides firewall for Linux systems. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-06-11 11:01:46 -0500 (Tue, 11 Jun 2013) $ + +case "$1" in + start) + if [ -x /etc/rc.d/rc.iptables ]; then + log_info_msg "Starting iptables..." + /etc/rc.d/rc.iptables + evaluate_retval + fi + ;; + + lock) + log_info_msg "Locking system iptables firewall..." + /usr/sbin/iptables --policy INPUT DROP + /usr/sbin/iptables --policy OUTPUT DROP + /usr/sbin/iptables --policy FORWARD DROP + /usr/sbin/iptables --flush + /usr/sbin/iptables -t nat --flush + /usr/sbin/iptables -t mangle --flush + /usr/sbin/iptables --delete-chain + /usr/sbin/iptables -t nat --delete-chain + /usr/sbin/iptables -t mangle --delete-chain + /usr/sbin/iptables -A INPUT -i lo -j ACCEPT + /usr/sbin/iptables -A OUTPUT -o lo -j ACCEPT + evaluate_retval + ;; + + clear) + log_info_msg "Clearing system iptables iptables..." + /usr/sbin/iptables --policy INPUT ACCEPT + /usr/sbin/iptables --policy OUTPUT ACCEPT + /usr/sbin/iptables --policy FORWARD ACCEPT + /usr/sbin/iptables --flush + /usr/sbin/iptables -t nat --flush + /usr/sbin/iptables -t mangle --flush + /usr/sbin/iptables --delete-chain + /usr/sbin/iptables -t nat --delete-chain + /usr/sbin/iptables -t mangle --delete-chain + evaluate_retval + ;; + + status) + /usr/sbin/iptables --numeric --list + /usr/sbin/iptables -t nat --numeric --list + /usr/sbin/iptables -t mangle --numeric --list + ;; + + *) + echo "Usage: $0 {start|clear|lock|status}" + exit 1 + ;; +esac + +# End /etc/init.d/iptables + From b2cf2620edbfee7c0c495b7bf38d7a7c90eca348 Mon Sep 17 00:00:00 2001 From: milisarge Date: Fri, 24 Mar 2017 22:55:45 +0200 Subject: [PATCH 12/45] iptables.kurkos.eklendi --- talimatname/genel/iptables/iptables.kur-kos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talimatname/genel/iptables/iptables.kur-kos b/talimatname/genel/iptables/iptables.kur-kos index fed8f7566..77a284463 100644 --- a/talimatname/genel/iptables/iptables.kur-kos +++ b/talimatname/genel/iptables/iptables.kur-kos @@ -1 +1 @@ -cp iptables.rc /etc/rc.d/init.d/iptables +cp /sources/milis.git/talimatname/genel/iptables/iptables.rc /etc/rc.d/init.d/iptables From f03558090ee31672bab584909b705d9afefb8f48 Mon Sep 17 00:00:00 2001 From: milisarge Date: Sun, 26 Mar 2017 10:37:57 +0300 Subject: [PATCH 13/45] badvpn.paketlendi --- talimatname/genel/badvpn/badvpn-ncd.conf.d | 2 ++ talimatname/genel/badvpn/talimat | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 talimatname/genel/badvpn/badvpn-ncd.conf.d create mode 100644 talimatname/genel/badvpn/talimat diff --git a/talimatname/genel/badvpn/badvpn-ncd.conf.d b/talimatname/genel/badvpn/badvpn-ncd.conf.d new file mode 100644 index 000000000..d1148c5fe --- /dev/null +++ b/talimatname/genel/badvpn/badvpn-ncd.conf.d @@ -0,0 +1,2 @@ +NCD_CONFIG="/etc/ncd.conf" +NCD_ARGS="" diff --git a/talimatname/genel/badvpn/talimat b/talimatname/genel/badvpn/talimat new file mode 100644 index 000000000..ec108ad7b --- /dev/null +++ b/talimatname/genel/badvpn/talimat @@ -0,0 +1,18 @@ +# Description: P2P vpn sistemi,ağ arayüz ayarları için ncd programlama dili +# URL: https://github.com/ambrop72/badvpn +# packager: milisarge +# Depends on: nss cmake + +name=badvpn +version=1.999.130 +release=1 +source=(https://github.com/ambrop72/badvpn/archive/$version.tar.gz + badvpn-ncd.conf.d) + +build() { + cd $name-$version + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release . + make + make DESTDIR="$PKG" install + install -D -m0644 "$SRC/badvpn-ncd.conf.d" "$PKG/etc/conf.d/badvpn-ncd" +} From 956b466a595ab58849e4ccc658fd471649321cc1 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 02:45:43 +0300 Subject: [PATCH 14/45] java-mysql.paketlendi --- talimatname/genel/java-mysql/talimat | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 talimatname/genel/java-mysql/talimat diff --git a/talimatname/genel/java-mysql/talimat b/talimatname/genel/java-mysql/talimat new file mode 100644 index 000000000..f65a490a7 --- /dev/null +++ b/talimatname/genel/java-mysql/talimat @@ -0,0 +1,17 @@ +# Description: java-jdbc mysql bağlayıcısı +# URL: https://dev.mysql.com/downloads/connector/j/ +# Packager: milisarge +# Depends on: openjdk mariadb + +name=java-mysql +version=5.1.41 +uzunisim=mysql-connector-java-${version} +release=1 +source=(https://cdn.mysql.com/Downloads/Connector-J/${uzunisim}.tar.gz) + +build() { + cd $uzunisim + jdkyol=`readlink -f /opt/jdk` + install -d "$PKG$jdkyol/jre/lib/ext/" + cp ${uzunisim}-bin.jar $PKG$jdkyol/jre/lib/ext/mysql.jar +} From fec24a46031a4d731b8584d09cf2ff534fb55173 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 17:35:43 +0300 Subject: [PATCH 15/45] libev.paketlendi --- talimatname/genel/libev/talimat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 talimatname/genel/libev/talimat diff --git a/talimatname/genel/libev/talimat b/talimatname/genel/libev/talimat new file mode 100644 index 000000000..cf4df26c7 --- /dev/null +++ b/talimatname/genel/libev/talimat @@ -0,0 +1,18 @@ +# Description: yüksek performans loop/event modeli +# URL: http://software.schmorp.de/pkg/libev.html +# Packager: milisarge +# Depends on: + +name=libev +version=4.22 +release=1 +source=(http://dist.schmorp.de/$name/Attic/$name-$version.tar.gz) + +build () { + cd $name-$version + ./configure --prefix=/usr \ + --disable-static + make + make prefix=$PKG/usr install + rm $PKG/usr/include/event.h +} From b37906f7f4e42e895ffad516d5c41b097bf01257 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 17:36:19 +0300 Subject: [PATCH 16/45] fcgi-cgi.paketlendi --- talimatname/genel/fcgi-cgi/talimat | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 talimatname/genel/fcgi-cgi/talimat diff --git a/talimatname/genel/fcgi-cgi/talimat b/talimatname/genel/fcgi-cgi/talimat new file mode 100644 index 000000000..e454da1b2 --- /dev/null +++ b/talimatname/genel/fcgi-cgi/talimat @@ -0,0 +1,17 @@ +# Description: cgi uygulamalarını çalıştrmak için FastCGI uygulaması +# URL: http://cgit.stbuehler.de/gitosis/fcgi-cgi/ +# Packager: milisarge +# Depends on: glib libev + +name=fcgi-cgi +version=0.2.2 +release=1 +source=(http://git.lighttpd.net/fcgi-cgi.git/snapshot/$name-$version.tar.gz) + +build(){ + cd $name-$version + ./autogen.sh + ./configure --prefix=/usr + make + make prefix=$PKG/usr install +} From 0807edbaff952a1d7d1df1e9f68c5d40f78caa81 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 18:31:12 +0300 Subject: [PATCH 17/45] hiawatha-php.ayarlari --- ayarlar/hiawatha-php/hiawatha.conf | 4 ++-- ayarlar/hiawatha-php/php-fpm.conf | 3 ++- ayarlar/hiawatha-php/php.ini | 17 ++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ayarlar/hiawatha-php/hiawatha.conf b/ayarlar/hiawatha-php/hiawatha.conf index ef87fc73a..0570fb3ad 100644 --- a/ayarlar/hiawatha-php/hiawatha.conf +++ b/ayarlar/hiawatha-php/hiawatha.conf @@ -49,7 +49,7 @@ ExecuteCGI = yes # These settings can be used to run CGI applications. # #CGIhandler = /usr/bin/perl:pl -CGIhandler = /usr/bin/php-cgi:php5,php +#CGIhandler = /usr/bin/php-cgi:php #CGIhandler = /usr/bin/python:py #CGIhandler = /usr/bin/ruby:rb #CGIhandler = /usr/bin/ssi-cgi:shtml @@ -59,7 +59,7 @@ CGIhandler = /usr/bin/php-cgi:php5,php #ConnectTo = /var/lib/hiawatha/php-fcgi.sock FastCGIserver { FastCGIid = PHP5 - ConnectTo = /var/lib/hiawatha/php-fcgi.sock + ConnectTo = 127.0.0.1:9099 Extension = php SessionTimeout = 30 } diff --git a/ayarlar/hiawatha-php/php-fpm.conf b/ayarlar/hiawatha-php/php-fpm.conf index 663d2625c..662e7dc19 100644 --- a/ayarlar/hiawatha-php/php-fpm.conf +++ b/ayarlar/hiawatha-php/php-fpm.conf @@ -130,7 +130,8 @@ [www] user = www-data group = www-data -listen = /var/lib/hiawatha/php-fcgi.sock +#listen = /var/run/php-fcgi.sock +listen = 127.0.0.1:9099 pm = static pm.max_children = 3 chdir = / diff --git a/ayarlar/hiawatha-php/php.ini b/ayarlar/hiawatha-php/php.ini index 85412cf71..05e1890a7 100644 --- a/ayarlar/hiawatha-php/php.ini +++ b/ayarlar/hiawatha-php/php.ini @@ -201,6 +201,8 @@ engine = On ; http://php.net/short-open-tag short_open_tag = Off + + ; Allow ASP-style <% %> tags. ; http://php.net/asp-tags asp_tags = Off @@ -258,10 +260,10 @@ output_buffering = 4096 ; Note: You need to use zlib.output_handler instead of the standard ; output_handler, or otherwise the output will be corrupted. ; http://php.net/zlib.output-compression -zlib.output_compression = On +zlib.output_compression = Off ; http://php.net/zlib.output-compression-level -zlib.output_compression_level = 6 +;zlib.output_compression_level = -1 ; You cannot specify additional output handlers if zlib.output_compression ; is activated here. This setting does the same as output_handler but in @@ -360,7 +362,7 @@ zend.enable_gc = On ; threat in any way, but it makes it possible to determine whether you use PHP ; on your server or not. ; http://php.net/expose-php -expose_php = Off +expose_php = On ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; @@ -771,7 +773,7 @@ enable_dl = Off ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. ; http://php.net/cgi.fix-pathinfo -cgi.fix_pathinfo=0 +;cgi.fix_pathinfo=1 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate ; security tokens of the calling client. This allows IIS to define the @@ -791,7 +793,7 @@ cgi.fix_pathinfo=0 ; RFC2616 compliant header. ; Default is zero. ; http://php.net/cgi.rfc2616-headers -cgi.rfc2616_headers = 0 +;cgi.rfc2616_headers = 0 ;;;;;;;;;;;;;;;; ; File Uploads ; @@ -900,9 +902,6 @@ default_socket_timeout = 60 ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_shmop.dll -extension=pdo.so -extension=pdo_mysql.so -extension=mysql.so ; The MIBS data available in the PHP distribution must be installed. ; See http://www.php.net/manual/en/snmp.installation.php @@ -1191,7 +1190,7 @@ mysqli.max_persistent = -1 ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements ; http://php.net/mysqli.allow_local_infile -mysqli.allow_local_infile = On +;mysqli.allow_local_infile = On ; Allow or prevent persistent links. ; http://php.net/mysqli.allow-persistent From 5377409bbf0673725df3a752d94a1340a203e810 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 19:17:46 +0300 Subject: [PATCH 18/45] phpmyadmin.ayarlari --- ayarlar/hiawatha-php/config.inc.php | 155 ++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 ayarlar/hiawatha-php/config.inc.php diff --git a/ayarlar/hiawatha-php/config.inc.php b/ayarlar/hiawatha-php/config.inc.php new file mode 100644 index 000000000..585b85e60 --- /dev/null +++ b/ayarlar/hiawatha-php/config.inc.php @@ -0,0 +1,155 @@ +. + * + * @package PhpMyAdmin + */ + +/** + * This is needed for cookie based authentication to encrypt password in + * cookie. Needs to be 32 chars long. + */ +$cfg['blowfish_secret'] = 'cmckGRrkfe9fre'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ + +/** + * Servers configuration + */ +$i = 0; + +/** + * First server + */ +$i++; +/* Authentication type */ +$cfg['Servers'][$i]['auth_type'] = 'cookie'; +/* Server parameters */ +$cfg['Servers'][$i]['host'] = '127.0.0.1'; +$cfg['Servers'][$i]['connect_type'] = 'tcp'; +$cfg['Servers'][$i]['compress'] = false; +$cfg['Servers'][$i]['AllowNoPassword'] = false; + +/** + * phpMyAdmin configuration storage settings. + */ + +/* User used to manipulate with storage */ +// $cfg['Servers'][$i]['controlhost'] = ''; +// $cfg['Servers'][$i]['controlport'] = ''; +// $cfg['Servers'][$i]['controluser'] = 'pma'; +// $cfg['Servers'][$i]['controlpass'] = 'pmapass'; + +/* Storage database and tables */ +// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; +// $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; +// $cfg['Servers'][$i]['relation'] = 'pma__relation'; +// $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; +// $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; +// $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; +// $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; +// $cfg['Servers'][$i]['history'] = 'pma__history'; +// $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; +// $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; +// $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; +// $cfg['Servers'][$i]['recent'] = 'pma__recent'; +// $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; +// $cfg['Servers'][$i]['users'] = 'pma__users'; +// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; +// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; +// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; +// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; +// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; +// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; + +/** + * End of servers configuration + */ + +/** + * Directories for saving/loading files from server + */ +$cfg['UploadDir'] = ''; +$cfg['SaveDir'] = ''; + +/** + * Whether to display icons or text or both icons and text in table row + * action segment. Value can be either of 'icons', 'text' or 'both'. + * default = 'both' + */ +//$cfg['RowActionType'] = 'icons'; + +/** + * Defines whether a user should be displayed a "show all (records)" + * button in browse mode or not. + * default = false + */ +//$cfg['ShowAll'] = true; + +/** + * Number of rows displayed when browsing a result set. If the result + * set contains more rows, "Previous" and "Next". + * Possible values: 25, 50, 100, 250, 500 + * default = 25 + */ +//$cfg['MaxRows'] = 50; + +/** + * Disallow editing of binary fields + * valid values are: + * false allow editing + * 'blob' allow editing except for BLOB fields + * 'noblob' disallow editing except for BLOB fields + * 'all' disallow editing + * default = 'blob' + */ +//$cfg['ProtectBinary'] = false; + +/** + * Default language to use, if not browser-defined or user-defined + * (you find all languages in the locale folder) + * uncomment the desired line: + * default = 'en' + */ +//$cfg['DefaultLang'] = 'en'; +//$cfg['DefaultLang'] = 'de'; + +/** + * How many columns should be used for table display of a database? + * (a value larger than 1 results in some information being hidden) + * default = 1 + */ +//$cfg['PropertiesNumColumns'] = 2; + +/** + * Set to true if you want DB-based query history.If false, this utilizes + * JS-routines to display query history (lost by window close) + * + * This requires configuration storage enabled, see above. + * default = false + */ +//$cfg['QueryHistoryDB'] = true; + +/** + * When using DB-based query history, how many entries should be kept? + * default = 25 + */ +//$cfg['QueryHistoryMax'] = 100; + +/** + * Whether or not to query the user before sending the error report to + * the phpMyAdmin team when a JavaScript error occurs + * + * Available options + * ('ask' | 'always' | 'never') + * default = 'ask' + */ +//$cfg['SendErrorReports'] = 'always'; + +/** + * You can find more configuration options in the documentation + * in the doc/ folder or at . + */ From 6cb710cbd3f9dd0e5cedb59f15dcd55bdabc3e2f Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 19:19:46 +0300 Subject: [PATCH 19/45] hiawatha-php.ayarlari --- ayarlar/hiawatha-php/php.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ayarlar/hiawatha-php/php.ini b/ayarlar/hiawatha-php/php.ini index 05e1890a7..4b0cea9f7 100644 --- a/ayarlar/hiawatha-php/php.ini +++ b/ayarlar/hiawatha-php/php.ini @@ -892,6 +892,7 @@ default_socket_timeout = 60 ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysql.dll ;extension=php_mysqli.dll +extension=mysqli.so ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll @@ -1190,7 +1191,7 @@ mysqli.max_persistent = -1 ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements ; http://php.net/mysqli.allow_local_infile -;mysqli.allow_local_infile = On +mysqli.allow_local_infile = On ; Allow or prevent persistent links. ; http://php.net/mysqli.allow-persistent From a29c84d10ff285ffe6e9817dc3e7183407f3902c Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 20:47:15 +0300 Subject: [PATCH 20/45] hiawatha.rc --- talimatname/genel/hiawatha/hiawatha.kur-kos | 1 + talimatname/genel/hiawatha/hiawatha.rc | 33 +++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 talimatname/genel/hiawatha/hiawatha.kur-kos create mode 100755 talimatname/genel/hiawatha/hiawatha.rc diff --git a/talimatname/genel/hiawatha/hiawatha.kur-kos b/talimatname/genel/hiawatha/hiawatha.kur-kos new file mode 100644 index 000000000..d520b8257 --- /dev/null +++ b/talimatname/genel/hiawatha/hiawatha.kur-kos @@ -0,0 +1 @@ +cp /sources/milis.git/talimatname/genel/hiawatha/hiawatha.rc /etc/rc.d/init.d/hiawatha diff --git a/talimatname/genel/hiawatha/hiawatha.rc b/talimatname/genel/hiawatha/hiawatha.rc new file mode 100755 index 000000000..b482bdfef --- /dev/null +++ b/talimatname/genel/hiawatha/hiawatha.rc @@ -0,0 +1,33 @@ +#!/bin/sh +# +# /etc/rc.d/hiawatha: başlatma/durdurma hiawatha web sunucu +# + +. /lib/lsb/init-functions +_PID=/var/run/hiawatha.pid + +case $1 in +start) + log_info_msg "Hiawatha başlatılıyor..." + /usr/bin/hiawatha + evaluate_retval + ;; +stop) + log_info_msg "Hiawatha durduruluyor..." + if [ -f $_PID ]; then + kill `cat $_PID` + else + killall -9 /usr/bin/hiawatha + fi + evaluate_retval + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "Kullanım: $0 [start|stop|restart]" + exit 1 + ;; +esac From 861b06fbc3e460b6d848f5ce6294dfbf0e1dcaf4 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 21:22:33 +0300 Subject: [PATCH 21/45] php-xsl.paketlendi --- talimatname/genel/php-xsl/talimat | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 talimatname/genel/php-xsl/talimat diff --git a/talimatname/genel/php-xsl/talimat b/talimatname/genel/php-xsl/talimat new file mode 100644 index 000000000..ffc1e784b --- /dev/null +++ b/talimatname/genel/php-xsl/talimat @@ -0,0 +1,23 @@ +# Description: libxslt kütüphanesi kullanılarak xslt php uyarlaması +# URL: http://www.php.net +# Packager: milisarge +# Depends on: libxslt + +name=php-xsl +version=7.1.3 +release=1 +source=(http://www.php.net/distributions/php-$version.tar.bz2) + +build() { + cd php-$version + + ./configure --disable-all \ + --enable-libxml \ + --enable-dom \ + --with-xsl=shared,/usr + make build-modules + + install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions} + install -m 755 modules/xsl.so $PKG/usr/lib/php/extensions + echo "extension=xsl.so" > $PKG/etc/php/conf.d/xsl.ini +} From 48a0463ece0b83ad6cb4556622b42716144f47c4 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 21:26:16 +0300 Subject: [PATCH 22/45] php-xsl.paketlendi --- talimatname/genel/php-xsl/talimat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/talimatname/genel/php-xsl/talimat b/talimatname/genel/php-xsl/talimat index ffc1e784b..a4b819e06 100644 --- a/talimatname/genel/php-xsl/talimat +++ b/talimatname/genel/php-xsl/talimat @@ -4,9 +4,9 @@ # Depends on: libxslt name=php-xsl -version=7.1.3 +version=5.6.16 release=1 -source=(http://www.php.net/distributions/php-$version.tar.bz2) +source=(http://www.php.net/distributions/php-$version.tar.xz) build() { cd php-$version From e3dd4872f826ced790af4ef398f553e37b5d6621 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 21:49:59 +0300 Subject: [PATCH 23/45] hiawatha-php.ayarlari --- ayarlar/hiawatha-php/php.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ayarlar/hiawatha-php/php.ini b/ayarlar/hiawatha-php/php.ini index 4b0cea9f7..eaf8d6e05 100644 --- a/ayarlar/hiawatha-php/php.ini +++ b/ayarlar/hiawatha-php/php.ini @@ -736,7 +736,7 @@ user_dir = ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: -; extension_dir = "ext" +extension_dir = "/usr/lib/php/extensions/" ; Directory where the temporary files should be placed. ; Defaults to the system default (see sys_get_temp_dir) From 0cea05acb05d04ad3bbcc33b72c27cb20ed342d9 Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 22:03:03 +0300 Subject: [PATCH 24/45] hiawatha-php.ayarlari --- ayarlar/hiawatha-php/php.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ayarlar/hiawatha-php/php.ini b/ayarlar/hiawatha-php/php.ini index eaf8d6e05..63200ecb4 100644 --- a/ayarlar/hiawatha-php/php.ini +++ b/ayarlar/hiawatha-php/php.ini @@ -773,7 +773,7 @@ enable_dl = Off ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED. ; http://php.net/cgi.fix-pathinfo -;cgi.fix_pathinfo=1 +cgi.fix_pathinfo=0 ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate ; security tokens of the calling client. This allows IIS to define the @@ -893,6 +893,7 @@ default_socket_timeout = 60 ;extension=php_mysql.dll ;extension=php_mysqli.dll extension=mysqli.so +extension=xsl.so ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll From 5052ad675b62f7d755cf69c6f2923ad1697b913c Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 00:20:24 +0300 Subject: [PATCH 25/45] perl-carp-always.paketlendi --- talimatname/genel/perl-carp-always/talimat | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 talimatname/genel/perl-carp-always/talimat diff --git a/talimatname/genel/perl-carp-always/talimat b/talimatname/genel/perl-carp-always/talimat new file mode 100644 index 000000000..c16a1f5dc --- /dev/null +++ b/talimatname/genel/perl-carp-always/talimat @@ -0,0 +1,26 @@ +# Description: Perl Carp modülü +# URL: http://search.cpan.org/dist/Carp-Always +# Packager : milisarge +# Depends on: + +name=perl-carp-always +version=0.13 +release=1 +source=(http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/Carp-Always-0.13.tar.gz) + +build() { + _distdir="Carp-Always-0.13" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} From 3a53b3918207c56a9b03b7d8adc6c93451958f9f Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 00:32:48 +0300 Subject: [PATCH 26/45] perl-carp.paketlendi --- talimatname/genel/perl-carp/talimat | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 talimatname/genel/perl-carp/talimat diff --git a/talimatname/genel/perl-carp/talimat b/talimatname/genel/perl-carp/talimat new file mode 100644 index 000000000..13cb54631 --- /dev/null +++ b/talimatname/genel/perl-carp/talimat @@ -0,0 +1,26 @@ +# Description: Perl Carp modülü +# URL: http://search.cpan.org/dist/Carp +# Packager : milisarge +# Depends on: + +name=perl-carp +version=1.38 +release=1 +source=(http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Carp-1.38.tar.gz) + +build() { + _distdir="Carp-1.38" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} From 63b76858caf3db7fb2489f8ce657b471e922c6ca Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 00:38:48 +0300 Subject: [PATCH 27/45] perl-cgi-carp.paketlendi --- talimatname/genel/perl-cgi-carp/talimat | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 talimatname/genel/perl-cgi-carp/talimat diff --git a/talimatname/genel/perl-cgi-carp/talimat b/talimatname/genel/perl-cgi-carp/talimat new file mode 100644 index 000000000..4ce17b99d --- /dev/null +++ b/talimatname/genel/perl-cgi-carp/talimat @@ -0,0 +1,26 @@ +# Description: Perl CGI Carp modülü +# URL: http://search.cpan.org/~leejo/CGI-4.35/lib/CGI/Carp.pm +# Packager : milisarge +# Depends on: + +name=perl-cgi-carp +version=4.35 +release=1 +source=(http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-4.35.tar.gz) + +build() { + _distdir="CGI-4.35" + + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$PKG'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$PKG'" \ + MODULEBUILDRC=/dev/null + + cd "$SRC/$_distdir" + /usr/bin/perl Makefile.PL + make + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make DESTDIR=${PKG} install + find "$PKG" -name .packlist -o -name perllocal.pod -delete +} From ba64715c4db6e0a3466040dcfbbc048b910ef275 Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 00:43:27 +0300 Subject: [PATCH 28/45] perl-html-parser.paketlendi --- talimatname/genel/perl-html-parser/talimat | 8 ++++---- talimatname/genel/perl-html-tagset/talimat | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/talimatname/genel/perl-html-parser/talimat b/talimatname/genel/perl-html-parser/talimat index 4ec78393e..be80f89c6 100644 --- a/talimatname/genel/perl-html-parser/talimat +++ b/talimatname/genel/perl-html-parser/talimat @@ -1,8 +1,8 @@ -# Description: Perl HTML parser class +# Description: Perl HTML ayrıştırıcı modülü # URL: http://search.cpan.org/ -# Packager: pierre at nutyx dot org -# Depends on: perl perl-html-tagset -run=( perl ) +# Packager: milisarge +# Depends on: perl-html-tagset + name=perl-html-parser version=3.71 release=1 diff --git a/talimatname/genel/perl-html-tagset/talimat b/talimatname/genel/perl-html-tagset/talimat index 61bf796aa..34417b594 100644 --- a/talimatname/genel/perl-html-tagset/talimat +++ b/talimatname/genel/perl-html-tagset/talimat @@ -1,8 +1,8 @@ -# Description: Data tables useful in parsing HTML +# Description: HTML ayrıştırması için faydalı veri tabloları # URL: http://search.cpan.org/ -# Packager: pierre at nutyx dot org -# Depends on: perl -run=( perl ) +# Packager: milisarge +# Depends on: + name=perl-html-tagset version=3.20 release=1 From e71e35c9a502ff58f65362e62d61777e4d3aa7f8 Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 05:34:52 +0300 Subject: [PATCH 29/45] mps.servis-yonetimi --- ayarlar/servisler/Makefile | 1185 +++++++++++++++++++ ayarlar/servisler/mbd/init.d/acpid | 59 + ayarlar/servisler/mbd/init.d/alsa | 51 + ayarlar/servisler/mbd/init.d/atd | 61 + ayarlar/servisler/mbd/init.d/autofs | 157 +++ ayarlar/servisler/mbd/init.d/avahi | 77 ++ ayarlar/servisler/mbd/init.d/bind | 68 ++ ayarlar/servisler/mbd/init.d/bluetooth | 139 +++ ayarlar/servisler/mbd/init.d/cups | 66 ++ ayarlar/servisler/mbd/init.d/dbus | 66 ++ ayarlar/servisler/mbd/init.d/dhcpd | 74 ++ ayarlar/servisler/mbd/init.d/dovecot | 64 + ayarlar/servisler/mbd/init.d/exim | 60 + ayarlar/servisler/mbd/init.d/fcron | 53 + ayarlar/servisler/mbd/init.d/gdm | 58 + ayarlar/servisler/mbd/init.d/gpm | 83 ++ ayarlar/servisler/mbd/init.d/haveged | 55 + ayarlar/servisler/mbd/init.d/hiawatha | 33 + ayarlar/servisler/mbd/init.d/httpd | 62 + ayarlar/servisler/mbd/init.d/iptables | 84 ++ ayarlar/servisler/mbd/init.d/krb5 | 70 ++ ayarlar/servisler/mbd/init.d/lprng | 67 ++ ayarlar/servisler/mbd/init.d/lxdm | 53 + ayarlar/servisler/mbd/init.d/mysql | 86 ++ ayarlar/servisler/mbd/init.d/netfs | 106 ++ ayarlar/servisler/mbd/init.d/networkmanager | 65 + ayarlar/servisler/mbd/init.d/nfs-client | 61 + ayarlar/servisler/mbd/init.d/nfs-server | 119 ++ ayarlar/servisler/mbd/init.d/ntpd | 62 + ayarlar/servisler/mbd/init.d/php-fpm | 132 +++ ayarlar/servisler/mbd/init.d/postfix | 71 ++ ayarlar/servisler/mbd/init.d/postgresql | 66 ++ ayarlar/servisler/mbd/init.d/proftpd | 66 ++ ayarlar/servisler/mbd/init.d/qpopper | 67 ++ ayarlar/servisler/mbd/init.d/random | 55 + ayarlar/servisler/mbd/init.d/rpcbind | 66 ++ ayarlar/servisler/mbd/init.d/rsyncd | 61 + ayarlar/servisler/mbd/init.d/samba | 73 ++ ayarlar/servisler/mbd/init.d/saslauthd | 84 ++ ayarlar/servisler/mbd/init.d/sddm | 53 + ayarlar/servisler/mbd/init.d/sendmail | 57 + ayarlar/servisler/mbd/init.d/slapd | 74 ++ ayarlar/servisler/mbd/init.d/smartd | 79 ++ ayarlar/servisler/mbd/init.d/soprano | 67 ++ ayarlar/servisler/mbd/init.d/sshd | 77 ++ ayarlar/servisler/mbd/init.d/stunnel | 55 + ayarlar/servisler/mbd/init.d/svn | 60 + ayarlar/servisler/mbd/init.d/swat | 62 + ayarlar/servisler/mbd/init.d/sysstat | 45 + ayarlar/servisler/mbd/init.d/unbound | 59 + ayarlar/servisler/mbd/init.d/virtuoso | 69 ++ ayarlar/servisler/mbd/init.d/vsftpd | 66 ++ ayarlar/servisler/mbd/init.d/wicd | 77 ++ ayarlar/servisler/mbd/init.d/winbindd | 64 + ayarlar/servisler/mbd/init.d/xinetd | 67 ++ ayarlar/servisler/mbd/services/bridge | 76 ++ ayarlar/servisler/mbd/services/dhclient | 119 ++ ayarlar/servisler/mbd/services/dhcpcd | 69 ++ ayarlar/servisler/mbd/services/wpa | 96 ++ ayarlar/servisler/mbd/sysconfig/autofs.conf | 23 + ayarlar/servisler/mbd/sysconfig/bluetooth | 11 + ayarlar/servisler/mbd/sysconfig/dhcpd | 11 + ayarlar/servisler/mbd/sysconfig/saslauthd | 32 + ayarlar/servisler/mbd/sysconfig/slapd | 13 + bin/mps | 31 +- 65 files changed, 5496 insertions(+), 1 deletion(-) create mode 100644 ayarlar/servisler/Makefile create mode 100644 ayarlar/servisler/mbd/init.d/acpid create mode 100644 ayarlar/servisler/mbd/init.d/alsa create mode 100644 ayarlar/servisler/mbd/init.d/atd create mode 100644 ayarlar/servisler/mbd/init.d/autofs create mode 100644 ayarlar/servisler/mbd/init.d/avahi create mode 100644 ayarlar/servisler/mbd/init.d/bind create mode 100644 ayarlar/servisler/mbd/init.d/bluetooth create mode 100644 ayarlar/servisler/mbd/init.d/cups create mode 100644 ayarlar/servisler/mbd/init.d/dbus create mode 100644 ayarlar/servisler/mbd/init.d/dhcpd create mode 100644 ayarlar/servisler/mbd/init.d/dovecot create mode 100644 ayarlar/servisler/mbd/init.d/exim create mode 100644 ayarlar/servisler/mbd/init.d/fcron create mode 100644 ayarlar/servisler/mbd/init.d/gdm create mode 100644 ayarlar/servisler/mbd/init.d/gpm create mode 100644 ayarlar/servisler/mbd/init.d/haveged create mode 100755 ayarlar/servisler/mbd/init.d/hiawatha create mode 100644 ayarlar/servisler/mbd/init.d/httpd create mode 100644 ayarlar/servisler/mbd/init.d/iptables create mode 100644 ayarlar/servisler/mbd/init.d/krb5 create mode 100644 ayarlar/servisler/mbd/init.d/lprng create mode 100644 ayarlar/servisler/mbd/init.d/lxdm create mode 100644 ayarlar/servisler/mbd/init.d/mysql create mode 100644 ayarlar/servisler/mbd/init.d/netfs create mode 100644 ayarlar/servisler/mbd/init.d/networkmanager create mode 100644 ayarlar/servisler/mbd/init.d/nfs-client create mode 100644 ayarlar/servisler/mbd/init.d/nfs-server create mode 100644 ayarlar/servisler/mbd/init.d/ntpd create mode 100644 ayarlar/servisler/mbd/init.d/php-fpm create mode 100644 ayarlar/servisler/mbd/init.d/postfix create mode 100644 ayarlar/servisler/mbd/init.d/postgresql create mode 100644 ayarlar/servisler/mbd/init.d/proftpd create mode 100644 ayarlar/servisler/mbd/init.d/qpopper create mode 100644 ayarlar/servisler/mbd/init.d/random create mode 100644 ayarlar/servisler/mbd/init.d/rpcbind create mode 100644 ayarlar/servisler/mbd/init.d/rsyncd create mode 100644 ayarlar/servisler/mbd/init.d/samba create mode 100644 ayarlar/servisler/mbd/init.d/saslauthd create mode 100644 ayarlar/servisler/mbd/init.d/sddm create mode 100644 ayarlar/servisler/mbd/init.d/sendmail create mode 100644 ayarlar/servisler/mbd/init.d/slapd create mode 100644 ayarlar/servisler/mbd/init.d/smartd create mode 100644 ayarlar/servisler/mbd/init.d/soprano create mode 100644 ayarlar/servisler/mbd/init.d/sshd create mode 100644 ayarlar/servisler/mbd/init.d/stunnel create mode 100644 ayarlar/servisler/mbd/init.d/svn create mode 100644 ayarlar/servisler/mbd/init.d/swat create mode 100644 ayarlar/servisler/mbd/init.d/sysstat create mode 100644 ayarlar/servisler/mbd/init.d/unbound create mode 100644 ayarlar/servisler/mbd/init.d/virtuoso create mode 100644 ayarlar/servisler/mbd/init.d/vsftpd create mode 100644 ayarlar/servisler/mbd/init.d/wicd create mode 100644 ayarlar/servisler/mbd/init.d/winbindd create mode 100644 ayarlar/servisler/mbd/init.d/xinetd create mode 100644 ayarlar/servisler/mbd/services/bridge create mode 100644 ayarlar/servisler/mbd/services/dhclient create mode 100644 ayarlar/servisler/mbd/services/dhcpcd create mode 100644 ayarlar/servisler/mbd/services/wpa create mode 100644 ayarlar/servisler/mbd/sysconfig/autofs.conf create mode 100644 ayarlar/servisler/mbd/sysconfig/bluetooth create mode 100644 ayarlar/servisler/mbd/sysconfig/dhcpd create mode 100644 ayarlar/servisler/mbd/sysconfig/saslauthd create mode 100644 ayarlar/servisler/mbd/sysconfig/slapd diff --git a/ayarlar/servisler/Makefile b/ayarlar/servisler/Makefile new file mode 100644 index 000000000..c30643031 --- /dev/null +++ b/ayarlar/servisler/Makefile @@ -0,0 +1,1185 @@ +SHELL=/bin/bash + +ETCDIR=/etc +LIBDIR=${DESTDIR}/lib/services +EXTDIR=${DESTDIR}${ETCDIR} +MODE=754 +DIRMODE=755 +CONFMODE=644 + +all: + @grep "^install" Makefile | cut -d ":" -f 1 + @echo "Aşağıdaki listeden kurmak istediğiniz servisi seçiniz." + +dizinleri-olustur: + install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc{0,1,2,3,4,5,6,S}.d + install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d + install -d -m ${DIRMODE} ${EXTDIR}/sysconfig + +servis-dizini-olustur: + install -d -m ${DIRMODE} ${LIBDIR} + +servis-kur-dhclient: servis-dizini-olustur + install -m ${MODE} mbd/services/dhclient ${LIBDIR} + +servis-kur-dhcpcd: servis-dizini-olustur + install -m ${MODE} mbd/services/dhcpcd ${LIBDIR} + +servis-kur-bridge: servis-dizini-olustur + install -m ${MODE} mbd/services/bridge ${LIBDIR} + +servis-kur-ipx: servis-dizini-olustur + install -m ${MODE} mbd/services/ipx ${LIBDIR} + +servis-kur-pppoe: servis-dizini-olustur + install -m ${MODE} mbd/services/pppoe ${LIBDIR} + install -d -m ${DIRMODE} ${EXTDIR}/ppp/peers + install -m ${CONFMODE} mbd/ppp/pppoe ${EXTDIR}/ppp/peers + +servis-kur-wpa: servis-dizini-olustur + install -m ${MODE} mbd/services/wpa ${LIBDIR} + +kur-acpid: dizinleri-olustur + install -m ${MODE} mbd/init.d/acpid ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc0.d/K32acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc1.d/K32acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc2.d/S18acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc3.d/S18acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc4.d/S18acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc5.d/S18acpid + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc6.d/K32acpid + +kur-alsa: dizinleri-olustur + install -m ${MODE} mbd/init.d/alsa ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc0.d/K35alsa + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc1.d/K35alsa + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc6.d/K35alsa + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rcS.d/S60alsa + +kur-httpd: dizinleri-olustur + install -m ${MODE} mbd/init.d/httpd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc0.d/K28httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc1.d/K28httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc2.d/K28httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc3.d/S32httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc4.d/S32httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc5.d/S32httpd + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc6.d/K28httpd + +kur-hiawatha: dizinleri-olustur + install -m ${MODE} mbd/init.d/hiawatha ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc0.d/K28hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc1.d/K28hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc2.d/K28hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc3.d/S32hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc4.d/S32hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc5.d/S32hiawatha + ln -sf ../init.d/hiawatha ${EXTDIR}/rc.d/rc6.d/K28hiawatha + +kur-php: dizinleri-olustur + install -m ${MODE} mbd/init.d/php-fpm ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc0.d/K28php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc1.d/K28php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc2.d/K28php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc3.d/S32php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc4.d/S32php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc5.d/S32php-fpm + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc6.d/K28php-fpm + +kur-autofs: dizinleri-olustur + install -m $(MODE) mbd/init.d/autofs $(EXTDIR)/rc.d/init.d/ + install -m $(CONFMODE) mbd/sysconfig/autofs.conf $(EXTDIR)/sysconfig/ + ln -sf ../init.d/autofs $(EXTDIR)/rc.d/rcS.d/S52autofs + +kur-atd: dizinleri-olustur + install -m ${MODE} mbd/init.d/atd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc0.d/K29atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc1.d/K29atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc2.d/S68atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc3.d/S68atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc4.d/S68atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc5.d/S68atd + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc6.d/K29atd + +kur-avahi: dizinleri-olustur + install -m ${MODE} mbd/init.d/avahi ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc0.d/K28avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc1.d/K28avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc2.d/S34avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc3.d/S34avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc4.d/S34avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc5.d/S34avahi + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc6.d/K28avahi + +kur-bind: dizinleri-olustur + install -m ${MODE} mbd/init.d/bind ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc0.d/K49bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc1.d/K49bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc2.d/K49bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc3.d/S22bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc4.d/S22bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc5.d/S22bind + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc6.d/K49bind + +kur-bluetooth: dizinleri-olustur + install -m ${MODE} mbd/init.d/bluetooth ${EXTDIR}/rc.d/init.d/bluetooth + install -m ${CONFMODE} mbd/sysconfig/bluetooth ${EXTDIR}/sysconfig/bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc0.d/K27bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc1.d/K27bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc2.d/S35bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc3.d/S35bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc4.d/S35bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc5.d/S35bluetooth + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc6.d/K27bluetooth + +kur-cups: dizinleri-olustur + install -m ${MODE} mbd/init.d/cups ${EXTDIR}/rc.d/init.d/ + rm -f ${EXTDIR}/rc.d/rc0.d/K36cups + rm -f ${EXTDIR}/rc.d/rc2.d/K36cups + rm -f ${EXTDIR}/rc.d/rc3.d/K36cups + rm -f ${EXTDIR}/rc.d/rc5.d/K36cups + rm -f ${EXTDIR}/rc.d/rc2.d/S81cups + rm -f ${EXTDIR}/rc.d/rc3.d/S81cups + rm -f ${EXTDIR}/rc.d/rc5.d/S81cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc0.d/K00cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc1.d/K00cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc2.d/S25cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc3.d/S25cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc4.d/S25cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc5.d/S25cups + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc6.d/K00cups + +kur-saslauthd: dizinleri-olustur + install -m ${MODE} mbd/init.d/saslauthd ${EXTDIR}/rc.d/init.d/saslauthd + install -m ${CONFMODE} mbd/sysconfig/saslauthd ${EXTDIR}/sysconfig/saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc0.d/K49saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc1.d/K49saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc2.d/S24saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc3.d/S24saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc4.d/S24saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc5.d/S24saslauthd + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc6.d/K49saslauthd + +kur-dbus: dizinleri-olustur + install -m ${MODE} mbd/init.d/dbus ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc0.d/K30dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc1.d/K30dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc2.d/S29dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc3.d/S29dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc4.d/S29dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc5.d/S29dbus + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc6.d/K30dbus + +kur-dovecot: dizinleri-olustur + install -m ${MODE} mbd/init.d/dovecot ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc0.d/K78dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc1.d/K78dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc2.d/K78dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc3.d/S27dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc4.d/S27dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc5.d/S27dovecot + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc6.d/K78dovecot + +kur-wicd: dizinleri-olustur + install -m ${MODE} mbd/init.d/wicd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc0.d/K20wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc1.d/K20wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc2.d/S30wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc3.d/S30wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc4.d/S30wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc5.d/S30wicd + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc6.d/K20wicd + +kur-dhcpd: dizinleri-olustur + install -m ${MODE} mbd/init.d/dhcpd ${EXTDIR}/rc.d/init.d/dhcpd + install -m ${CONFMODE} mbd/sysconfig/dhcpd ${EXTDIR}/sysconfig/dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc0.d/K30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc1.d/K30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc2.d/K30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc3.d/S30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc4.d/S30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc5.d/S30dhcpd + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc6.d/K30dhcpd + +kur-exim: dizinleri-olustur + install -m ${MODE} mbd/init.d/exim ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc0.d/K25exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc1.d/K25exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc2.d/K25exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc3.d/S35exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc4.d/S35exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc5.d/S35exim + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc6.d/K25exim + +kur-fcron: dizinleri-olustur + install -m ${MODE} mbd/init.d/fcron ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc0.d/K08fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc1.d/K08fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc2.d/S40fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc3.d/S40fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc4.d/S40fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc5.d/S40fcron + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc6.d/K08fcron + +kur-gdm: dizinleri-olustur + install -m ${MODE} mbd/init.d/gdm ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc0.d/K05gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc1.d/K05gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc2.d/K05gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc3.d/K05gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc4.d/K05gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc5.d/S95gdm + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc6.d/K05gdm + +kur-gpm: dizinleri-olustur + install -m ${MODE} mbd/init.d/gpm ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc0.d/K10gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc1.d/K10gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc2.d/S70gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc3.d/S70gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc4.d/S70gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc5.d/S70gpm + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc6.d/K10gpm + +kur-haveged: dizinleri-olustur + install -m ${MODE} mbd/init.d/haveged ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc0.d/K90haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc1.d/K90haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc2.d/K90haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc3.d/S21haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc4.d/S21haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc5.d/S21haveged + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc6.d/K90haveged + +kur-heimdal: dizinleri-olustur + install -m ${MODE} mbd/init.d/heimdal ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc0.d/K42heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc1.d/K42heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc2.d/K42heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc3.d/S28heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc4.d/S28heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc5.d/S28heimdal + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc6.d/K42heimdal + +kur-iptables: dizinleri-olustur + install -m ${MODE} mbd/init.d/iptables ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc3.d/S19iptables + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc4.d/S19iptables + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc5.d/S19iptables + +kur-krb5: dizinleri-olustur + install -m ${MODE} mbd/init.d/krb5 ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc0.d/K42krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc1.d/K42krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc2.d/K42krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc3.d/S28krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc4.d/S28krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc5.d/S28krb5 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc6.d/K42krb5 + +kur-lprng: dizinleri-olustur + install -m ${MODE} mbd/init.d/lprng ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc0.d/K00lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc1.d/K00lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc2.d/S99lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc3.d/S99lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc4.d/S99lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc5.d/S99lprng + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc6.d/K00lprng + +kur-lxdm: dizinleri-olustur + install -m ${MODE} mbd/init.d/lxdm ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc0.d/K05lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc1.d/K05lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc2.d/K05lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc3.d/K05lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc4.d/K05lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc5.d/S95lxdm + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc6.d/K05lxdm + +kur-mysql: dizinleri-olustur + install -m ${MODE} mbd/init.d/mysql ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc0.d/K26mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc1.d/K26mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc2.d/K26mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc3.d/S34mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc4.d/S34mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc5.d/S34mysql + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc6.d/K26mysql + +kur-netfs: dizinleri-olustur + install -m ${MODE} mbd/init.d/netfs ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc0.d/K47netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc1.d/K47netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc2.d/K47netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc3.d/S28netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc4.d/S28netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc5.d/S28netfs + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc6.d/K47netfs + +kur-networkmanager: dizinleri-olustur + install -m ${MODE} mbd/init.d/networkmanager ${EXTDIR}/rc.d/init.d/networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc0.d/K28networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc1.d/K28networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc2.d/S33networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc3.d/S33networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc4.d/S33networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc5.d/S33networkmanager + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc6.d/K28networkmanager + +kur-nfs-client: dizinleri-olustur + install -m ${MODE} mbd/init.d/nfs-client ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc0.d/K48nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc1.d/K48nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc2.d/K48nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc3.d/S24nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc4.d/S24nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc5.d/S24nfs-client + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc6.d/K48nfs-client + +kur-nfs-server: dizinleri-olustur + install -m ${MODE} mbd/init.d/nfs-server ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc0.d/K48nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc1.d/K48nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc2.d/K48nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc3.d/S24nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc4.d/S24nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc5.d/S24nfs-server + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc6.d/K48nfs-server + +kur-ntpd: dizinleri-olustur + install -m ${MODE} mbd/init.d/ntpd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc0.d/K46ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc1.d/K46ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc2.d/K46ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc3.d/S26ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc4.d/S26ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc5.d/S26ntpd + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc6.d/K46ntpd + +kur-slapd: dizinleri-olustur + install -m ${MODE} mbd/init.d/slapd ${EXTDIR}/rc.d/init.d/slapd + install -m ${CONFMODE} mbd/sysconfig/slapd ${EXTDIR}/sysconfig/slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc0.d/K46slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc1.d/K46slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc2.d/S25slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc3.d/S25slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc4.d/S25slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc5.d/S25slapd + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc6.d/K46slapd + +kur-postfix: dizinleri-olustur + install -m ${MODE} mbd/init.d/postfix ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc0.d/K25postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc1.d/K25postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc2.d/K25postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc3.d/S35postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc4.d/S35postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc5.d/S35postfix + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc6.d/K25postfix + +kur-postgresql: dizinleri-olustur + install -m ${MODE} mbd/init.d/postgresql ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc0.d/K26postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc1.d/K26postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc2.d/K26postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc3.d/S34postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc4.d/S34postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc5.d/S34postgresql + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc6.d/K26postgresql + +kur-proftpd: dizinleri-olustur + install -m ${MODE} mbd/init.d/proftpd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc0.d/K28proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc1.d/K28proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc2.d/K28proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc3.d/S32proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc4.d/S32proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc5.d/S32proftpd + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc6.d/K28proftpd + +kur-qpopper: dizinleri-olustur + install -m ${MODE} mbd/init.d/qpopper ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc0.d/K23qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc1.d/K23qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc2.d/K23qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc3.d/S37qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc4.d/S37qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc5.d/S37qpopper + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc6.d/K23qpopper + +kur-random: dizinleri-olustur + install -m ${MODE} mbd/init.d/random ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc0.d/K45random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc1.d/S25random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc2.d/S25random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc3.d/S25random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc4.d/S25random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc5.d/S25random + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc6.d/K45random + +kur-rpcbind: dizinleri-olustur + install -m ${MODE} mbd/init.d/rpcbind ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc0.d/K49rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc1.d/K49rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc2.d/K49rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc3.d/S22rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc4.d/S22rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc5.d/S22rpcbind + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc6.d/K49rpcbind + +kur-rsyncd: dizinleri-olustur + install -m ${MODE} mbd/init.d/rsyncd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc0.d/K30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc1.d/K30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc2.d/K30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc3.d/S30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc4.d/S30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc5.d/S30rsyncd + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc6.d/K30rsyncd + +kur-samba: dizinleri-olustur + install -m ${MODE} mbd/init.d/samba ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc0.d/K48samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc1.d/K48samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc2.d/K48samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc3.d/S45samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc4.d/S45samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc5.d/S45samba + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc6.d/K48samba + +kur-sddm: dizinleri-olustur + install -m ${MODE} mbd/init.d/sddm ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc0.d/K05sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc1.d/K05sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc2.d/K05sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc3.d/K05sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc4.d/K05sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc5.d/S95sddm + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc6.d/K05sddm + +kur-sendmail: dizinleri-olustur + install -m ${MODE} mbd/init.d/sendmail ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc0.d/K25sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc1.d/K25sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc2.d/K25sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc3.d/S35sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc4.d/S35sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc5.d/S35sendmail + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc6.d/K25sendmail + +kur-smartd: dizinleri-olustur + install -m ${MODE} mbd/init.d/smartd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc0.d/K70smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc1.d/K70smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc2.d/K70smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc3.d/S21smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc4.d/S21smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc5.d/S21smartd + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc6.d/K70smartd + +kur-soprano: dizinleri-olustur + install -m ${MODE} mbd/init.d/soprano ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc0.d/K35soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc1.d/K35soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc2.d/K35soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc3.d/S48soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc4.d/S48soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc5.d/S48soprano + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc6.d/K35soprano + +kur-swat: dizinleri-olustur + install -m ${MODE} mbd/init.d/swat ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc0.d/K47swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc1.d/K47swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc2.d/K47swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc3.d/S46swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc4.d/S46swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc5.d/S46swat + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc6.d/K47swat + +kur-sshd: dizinleri-olustur + install -m ${MODE} mbd/init.d/sshd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc0.d/K30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc1.d/K30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc2.d/K30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc3.d/S30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc4.d/S30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc5.d/S30sshd + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc6.d/K30sshd + +kur-stunnel: dizinleri-olustur + install -m ${MODE} mbd/init.d/stunnel ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc0.d/K47stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc1.d/K47stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc2.d/K47stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc3.d/S55stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc4.d/S55stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc5.d/S55stunnel + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc6.d/K47stunnel + +kur-svn: dizinleri-olustur + install -m ${MODE} mbd/init.d/svn ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc0.d/K27svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc1.d/K27svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc2.d/K27svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc3.d/S33svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc4.d/S33svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc5.d/S33svn + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc6.d/K27svn + +kur-sysstat: dizinleri-olustur + install -m ${MODE} mbd/init.d/sysstat ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/sysstat ${EXTDIR}/rc.d/rcS.d/S85sysstat + +kur-unbound: dizinleri-olustur + install -m ${MODE} mbd/init.d/unbound ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc0.d/K79unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc1.d/K79unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc2.d/K79unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc3.d/S21unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc4.d/S21unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc5.d/S21unbound + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc6.d/K79unbound + +kur-virtuoso: dizinleri-olustur + install -m ${MODE} mbd/init.d/virtuoso ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc0.d/K40virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc1.d/K40virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc2.d/K40virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc3.d/S47virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc4.d/S47virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc5.d/S47virtuoso + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc6.d/K40virtuoso + +kur-vsftpd: dizinleri-olustur + install -m ${MODE} mbd/init.d/vsftpd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc0.d/K28vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc1.d/K28vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc2.d/K28vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc3.d/S32vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc4.d/S32vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc5.d/S32vsftpd + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc6.d/K28vsftpd + +kur-winbindd: dizinleri-olustur + install -m ${MODE} mbd/init.d/winbindd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc0.d/K49winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc1.d/K49winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc2.d/K49winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc3.d/S50winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc4.d/S50winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc5.d/S50winbindd + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc6.d/K49winbindd + +kur-xinetd: dizinleri-olustur + install -m ${MODE} mbd/init.d/xinetd ${EXTDIR}/rc.d/init.d/ + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc0.d/K49xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc1.d/K49xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc2.d/K49xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc3.d/S23xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc4.d/S23xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc5.d/S23xinetd + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc6.d/K49xinetd + +sil-atd: + rm -f ${EXTDIR}/rc.d/init.d/atd + rm -f ${EXTDIR}/rc.d/rc0.d/K29atd + rm -f ${EXTDIR}/rc.d/rc1.d/K29atd + rm -f ${EXTDIR}/rc.d/rc2.d/S68atd + rm -f ${EXTDIR}/rc.d/rc3.d/S68atd + rm -f ${EXTDIR}/rc.d/rc4.d/S68atd + rm -f ${EXTDIR}/rc.d/rc5.d/S68atd + rm -f ${EXTDIR}/rc.d/rc6.d/K29atd + +sil-acpid: + rm -f ${EXTDIR}/rc.d/init.d/acpid + rm -f ${EXTDIR}/rc.d/rc0.d/K32acpid + rm -f ${EXTDIR}/rc.d/rc1.d/K32acpid + rm -f ${EXTDIR}/rc.d/rc2.d/S18acpid + rm -f ${EXTDIR}/rc.d/rc3.d/S18acpid + rm -f ${EXTDIR}/rc.d/rc4.d/S18acpid + rm -f ${EXTDIR}/rc.d/rc5.d/S18acpid + rm -f ${EXTDIR}/rc.d/rc6.d/K32acpid + +sil-alsa: + rm -f ${EXTDIR}/rc.d/init.d/alsa + rm -f ${EXTDIR}/rc.d/rc0.d/K35alsa + rm -f ${EXTDIR}/rc.d/rc1.d/K35alsa + rm -f ${EXTDIR}/rc.d/rc6.d/K35alsa + rm -f ${EXTDIR}/rc.d/rcS.d/S60alsa + +sil-httpd: + rm -f ${EXTDIR}/rc.d/init.d/httpd + rm -f ${EXTDIR}/rc.d/rc0.d/K28httpd + rm -f ${EXTDIR}/rc.d/rc1.d/K28httpd + rm -f ${EXTDIR}/rc.d/rc2.d/K28httpd + rm -f ${EXTDIR}/rc.d/rc3.d/S32httpd + rm -f ${EXTDIR}/rc.d/rc4.d/S32httpd + rm -f ${EXTDIR}/rc.d/rc5.d/S32httpd + rm -f ${EXTDIR}/rc.d/rc6.d/K28httpd + +sil-hiawatha: + rm -f ${EXTDIR}/rc.d/init.d/hiawatha + rm -f ${EXTDIR}/rc.d/rc0.d/K28hiawatha + rm -f ${EXTDIR}/rc.d/rc1.d/K28hiawatha + rm -f ${EXTDIR}/rc.d/rc2.d/K28hiawatha + rm -f ${EXTDIR}/rc.d/rc3.d/S32hiawatha + rm -f ${EXTDIR}/rc.d/rc4.d/S32hiawatha + rm -f ${EXTDIR}/rc.d/rc5.d/S32hiawatha + rm -f ${EXTDIR}/rc.d/rc6.d/K28hiawatha + +sil-php: + rm -f ${EXTDIR}/rc.d/init.d/php-fpm + rm -f ${EXTDIR}/rc.d/rc0.d/K28php-fpm + rm -f ${EXTDIR}/rc.d/rc1.d/K28php-fpm + rm -f ${EXTDIR}/rc.d/rc2.d/K28php-fpm + rm -f ${EXTDIR}/rc.d/rc3.d/S32php-fpm + rm -f ${EXTDIR}/rc.d/rc4.d/S32php-fpm + rm -f ${EXTDIR}/rc.d/rc5.d/S32php-fpm + rm -f ${EXTDIR}/rc.d/rc6.d/K28php-fpm + +sil-autofs: + rm -f $(EXTDIR)/rc.d/init.d/autofs + rm -f $(EXTDIR)/rc.d/rcS.d/S52autofs + +sil-avahi: + rm -f ${EXTDIR}/rc.d/init.d/avahi + rm -f ${EXTDIR}/rc.d/rc0.d/K28avahi + rm -f ${EXTDIR}/rc.d/rc1.d/K28avahi + rm -f ${EXTDIR}/rc.d/rc2.d/S34avahi + rm -f ${EXTDIR}/rc.d/rc3.d/S34avahi + rm -f ${EXTDIR}/rc.d/rc4.d/S34avahi + rm -f ${EXTDIR}/rc.d/rc5.d/S34avahi + rm -f ${EXTDIR}/rc.d/rc6.d/K28avahi + +sil-bind: + rm -f ${EXTDIR}/rc.d/init.d/bind + rm -f ${EXTDIR}/rc.d/rc0.d/K49bind + rm -f ${EXTDIR}/rc.d/rc1.d/K49bind + rm -f ${EXTDIR}/rc.d/rc2.d/K49bind + rm -f ${EXTDIR}/rc.d/rc3.d/S22bind + rm -f ${EXTDIR}/rc.d/rc4.d/S22bind + rm -f ${EXTDIR}/rc.d/rc5.d/S22bind + rm -f ${EXTDIR}/rc.d/rc6.d/K49bind + +sil-bluetooth: + rm -f ${EXTDIR}/rc.d/init.d/bluetooth + rm -f ${EXTDIR}/rc.d/rc0.d/K27bluetooth + rm -f ${EXTDIR}/rc.d/rc1.d/K27bluetooth + rm -f ${EXTDIR}/rc.d/rc2.d/S35bluetooth + rm -f ${EXTDIR}/rc.d/rc3.d/S35bluetooth + rm -f ${EXTDIR}/rc.d/rc4.d/S35bluetooth + rm -f ${EXTDIR}/rc.d/rc5.d/S35bluetooth + rm -f ${EXTDIR}/rc.d/rc6.d/K27bluetooth + +sil-cups: + rm -f ${EXTDIR}/rc.d/init.d/cups + rm -f ${EXTDIR}/rc.d/rc0.d/K00cups + rm -f ${EXTDIR}/rc.d/rc1.d/K00cups + rm -f ${EXTDIR}/rc.d/rc2.d/S25cups + rm -f ${EXTDIR}/rc.d/rc3.d/S25cups + rm -f ${EXTDIR}/rc.d/rc4.d/S25cups + rm -f ${EXTDIR}/rc.d/rc5.d/S25cups + rm -f ${EXTDIR}/rc.d/rc6.d/K00cups + +sil-saslauthd: + rm -f ${EXTDIR}/rc.d/init.d/saslauthd + rm -f ${EXTDIR}/sysconfig/saslauthd + rm -f ${EXTDIR}/rc.d/rc0.d/K49saslauthd + rm -f ${EXTDIR}/rc.d/rc1.d/K49saslauthd + rm -f ${EXTDIR}/rc.d/rc2.d/S24saslauthd + rm -f ${EXTDIR}/rc.d/rc3.d/S24saslauthd + rm -f ${EXTDIR}/rc.d/rc4.d/S24saslauthd + rm -f ${EXTDIR}/rc.d/rc5.d/S24saslauthd + rm -f ${EXTDIR}/rc.d/rc6.d/K49saslauthd + +sil-dbus: + rm -f ${EXTDIR}/rc.d/init.d/dbus + rm -f ${EXTDIR}/rc.d/rc0.d/K30dbus + rm -f ${EXTDIR}/rc.d/rc1.d/K30dbus + rm -f ${EXTDIR}/rc.d/rc2.d/S29dbus + rm -f ${EXTDIR}/rc.d/rc3.d/S29dbus + rm -f ${EXTDIR}/rc.d/rc4.d/S29dbus + rm -f ${EXTDIR}/rc.d/rc5.d/S29dbus + rm -f ${EXTDIR}/rc.d/rc6.d/K30dbus + +sil-wicd: + rm -f ${EXTDIR}/rc.d/init.d/wicd + rm -f ${EXTDIR}/rc.d/rc0.d/K20wicd + rm -f ${EXTDIR}/rc.d/rc1.d/K20wicd + rm -f ${EXTDIR}/rc.d/rc2.d/S30wicd + rm -f ${EXTDIR}/rc.d/rc3.d/S30wicd + rm -f ${EXTDIR}/rc.d/rc4.d/S30wicd + rm -f ${EXTDIR}/rc.d/rc5.d/S30wicd + rm -f ${EXTDIR}/rc.d/rc6.d/K20wicd + +sil-dhcpd: + rm -f ${EXTDIR}/rc.d/init.d/dhcpd + rm -f ${EXTDIR}/sysconfig/dhcpd + rm -f ${EXTDIR}/rc.d/rc0.d/K30dhcpd + rm -f ${EXTDIR}/rc.d/rc1.d/K30dhcpd + rm -f ${EXTDIR}/rc.d/rc2.d/K30dhcpd + rm -f ${EXTDIR}/rc.d/rc3.d/S30dhcpd + rm -f ${EXTDIR}/rc.d/rc4.d/S30dhcpd + rm -f ${EXTDIR}/rc.d/rc5.d/S30dhcpd + rm -f ${EXTDIR}/rc.d/rc6.d/K30dhcpd + +sil-dovecot: + rm -f ${EXTDIR}/rc.d/init.d/dovecot + rm -f ${EXTDIR}/rc.d/rc0.d/K78dovecot + rm -f ${EXTDIR}/rc.d/rc1.d/K78dovecot + rm -f ${EXTDIR}/rc.d/rc2.d/K78dovecot + rm -f ${EXTDIR}/rc.d/rc3.d/S27dovecot + rm -f ${EXTDIR}/rc.d/rc4.d/S27dovecot + rm -f ${EXTDIR}/rc.d/rc5.d/S27dovecot + rm -f ${EXTDIR}/rc.d/rc6.d/K78dovecot + +sil-exim: + rm -f ${EXTDIR}/rc.d/init.d/exim + rm -f ${EXTDIR}/rc.d/rc0.d/K25exim + rm -f ${EXTDIR}/rc.d/rc1.d/K25exim + rm -f ${EXTDIR}/rc.d/rc2.d/K25exim + rm -f ${EXTDIR}/rc.d/rc3.d/S35exim + rm -f ${EXTDIR}/rc.d/rc4.d/S35exim + rm -f ${EXTDIR}/rc.d/rc5.d/S35exim + rm -f ${EXTDIR}/rc.d/rc6.d/K25exim + +sil-fcron: + rm -f ${EXTDIR}/rc.d/init.d/fcron + rm -f ${EXTDIR}/rc.d/rc0.d/K08fcron + rm -f ${EXTDIR}/rc.d/rc1.d/K08fcron + rm -f ${EXTDIR}/rc.d/rc2.d/S40fcron + rm -f ${EXTDIR}/rc.d/rc3.d/S40fcron + rm -f ${EXTDIR}/rc.d/rc4.d/S40fcron + rm -f ${EXTDIR}/rc.d/rc5.d/S40fcron + rm -f ${EXTDIR}/rc.d/rc6.d/K08fcron + +sil-gdm: + rm -f ${EXTDIR}/rc.d/init.d/gdm + rm -f ${EXTDIR}/rc.d/rc0.d/K05gdm + rm -f ${EXTDIR}/rc.d/rc1.d/K05gdm + rm -f ${EXTDIR}/rc.d/rc2.d/K05gdm + rm -f ${EXTDIR}/rc.d/rc3.d/K05gdm + rm -f ${EXTDIR}/rc.d/rc4.d/K05gdm + rm -f ${EXTDIR}/rc.d/rc5.d/S95gdm + rm -f ${EXTDIR}/rc.d/rc6.d/K05gdm + +sil-gpm: + rm -f ${EXTDIR}/rc.d/init.d/gpm + rm -f ${EXTDIR}/rc.d/rc0.d/K10gpm + rm -f ${EXTDIR}/rc.d/rc1.d/K10gpm + rm -f ${EXTDIR}/rc.d/rc2.d/S70gpm + rm -f ${EXTDIR}/rc.d/rc3.d/S70gpm + rm -f ${EXTDIR}/rc.d/rc4.d/S70gpm + rm -f ${EXTDIR}/rc.d/rc5.d/S70gpm + rm -f ${EXTDIR}/rc.d/rc6.d/K10gpm + +sil-haveged: + rm -f ${EXTDIR}/rc.d/init.d/haveged + rm -f ${EXTDIR}/rc.d/rc0.d/K90haveged + rm -f ${EXTDIR}/rc.d/rc1.d/K90haveged + rm -f ${EXTDIR}/rc.d/rc2.d/K90haveged + rm -f ${EXTDIR}/rc.d/rc3.d/S21haveged + rm -f ${EXTDIR}/rc.d/rc4.d/S21haveged + rm -f ${EXTDIR}/rc.d/rc5.d/S21haveged + rm -f ${EXTDIR}/rc.d/rc6.d/K90haveged + +sil-heimdal: + rm -f ${EXTDIR}/rc.d/init.d/heimdal + rm -f ${EXTDIR}/rc.d/rc0.d/K42heimdal + rm -f ${EXTDIR}/rc.d/rc1.d/K42heimdal + rm -f ${EXTDIR}/rc.d/rc2.d/K42heimdal + rm -f ${EXTDIR}/rc.d/rc3.d/S28heimdal + rm -f ${EXTDIR}/rc.d/rc4.d/S28heimdal + rm -f ${EXTDIR}/rc.d/rc5.d/S28heimdal + rm -f ${EXTDIR}/rc.d/rc6.d/K42heimdal + +sil-iptables: + rm -f ${EXTDIR}/rc.d/init.d/iptables + rm -f ${EXTDIR}/rc.d/rc3.d/S19iptables + rm -f ${EXTDIR}/rc.d/rc4.d/S19iptables + rm -f ${EXTDIR}/rc.d/rc5.d/S19iptables + +sil-krb5: + rm -f ${EXTDIR}/rc.d/init.d/krb5 + rm -f ${EXTDIR}/rc.d/rc0.d/K42krb5 + rm -f ${EXTDIR}/rc.d/rc1.d/K42krb5 + rm -f ${EXTDIR}/rc.d/rc2.d/K42krb5 + rm -f ${EXTDIR}/rc.d/rc3.d/S28krb5 + rm -f ${EXTDIR}/rc.d/rc4.d/S28krb5 + rm -f ${EXTDIR}/rc.d/rc5.d/S28krb5 + rm -f ${EXTDIR}/rc.d/rc6.d/K42krb5 + +sil-lprng: + rm -f ${EXTDIR}/rc.d/init.d/lprng + rm -f ${EXTDIR}/rc.d/rc0.d/K00lprng + rm -f ${EXTDIR}/rc.d/rc1.d/K00lprng + rm -f ${EXTDIR}/rc.d/rc2.d/S99lprng + rm -f ${EXTDIR}/rc.d/rc3.d/S99lprng + rm -f ${EXTDIR}/rc.d/rc4.d/S99lprng + rm -f ${EXTDIR}/rc.d/rc5.d/S99lprng + rm -f ${EXTDIR}/rc.d/rc6.d/K00lprng + +sil-lxdm: + rm -f ${EXTDIR}/rc.d/init.d/lxdm + rm -f ${EXTDIR}/rc.d/rc0.d/K05lxdm + rm -f ${EXTDIR}/rc.d/rc1.d/K05lxdm + rm -f ${EXTDIR}/rc.d/rc2.d/K05lxdm + rm -f ${EXTDIR}/rc.d/rc3.d/K05lxdm + rm -f ${EXTDIR}/rc.d/rc4.d/K05lxdm + rm -f ${EXTDIR}/rc.d/rc5.d/S95lxdm + rm -f ${EXTDIR}/rc.d/rc6.d/K05lxdm + +sil-mysql: + rm -f ${EXTDIR}/rc.d/init.d/mysql + rm -f ${EXTDIR}/rc.d/rc0.d/K26mysql + rm -f ${EXTDIR}/rc.d/rc1.d/K26mysql + rm -f ${EXTDIR}/rc.d/rc2.d/K26mysql + rm -f ${EXTDIR}/rc.d/rc3.d/S34mysql + rm -f ${EXTDIR}/rc.d/rc4.d/S34mysql + rm -f ${EXTDIR}/rc.d/rc5.d/S34mysql + rm -f ${EXTDIR}/rc.d/rc6.d/K26mysql + +sil-netfs: + rm -f ${EXTDIR}/rc.d/init.d/netfs + rm -f ${EXTDIR}/rc.d/rc0.d/K47netfs + rm -f ${EXTDIR}/rc.d/rc1.d/K47netfs + rm -f ${EXTDIR}/rc.d/rc2.d/K47netfs + rm -f ${EXTDIR}/rc.d/rc3.d/S28netfs + rm -f ${EXTDIR}/rc.d/rc4.d/S28netfs + rm -f ${EXTDIR}/rc.d/rc5.d/S28netfs + rm -f ${EXTDIR}/rc.d/rc6.d/K47netfs + +sil-networkmanager: + rm -f ${EXTDIR}/rc.d/init.d/networkmanager + rm -f ${EXTDIR}/rc.d/rc0.d/K28networkmanager + rm -f ${EXTDIR}/rc.d/rc1.d/K28networkmanager + rm -f ${EXTDIR}/rc.d/rc2.d/S33networkmanager + rm -f ${EXTDIR}/rc.d/rc3.d/S33networkmanager + rm -f ${EXTDIR}/rc.d/rc4.d/S33networkmanager + rm -f ${EXTDIR}/rc.d/rc5.d/S33networkmanager + rm -f ${EXTDIR}/rc.d/rc6.d/K28networkmanager + +sil-nfs-client: + rm -f ${EXTDIR}/rc.d/init.d/nfs-client + rm -f ${EXTDIR}/rc.d/rc0.d/K48nfs-client + rm -f ${EXTDIR}/rc.d/rc1.d/K48nfs-client + rm -f ${EXTDIR}/rc.d/rc2.d/K48nfs-client + rm -f ${EXTDIR}/rc.d/rc3.d/S24nfs-client + rm -f ${EXTDIR}/rc.d/rc4.d/S24nfs-client + rm -f ${EXTDIR}/rc.d/rc5.d/S24nfs-client + rm -f ${EXTDIR}/rc.d/rc6.d/K48nfs-client + +sil-nfs-server: + rm -f ${EXTDIR}/rc.d/init.d/nfs-server + rm -f ${EXTDIR}/rc.d/rc0.d/K48nfs-server + rm -f ${EXTDIR}/rc.d/rc1.d/K48nfs-server + rm -f ${EXTDIR}/rc.d/rc2.d/K48nfs-server + rm -f ${EXTDIR}/rc.d/rc3.d/S24nfs-server + rm -f ${EXTDIR}/rc.d/rc4.d/S24nfs-server + rm -f ${EXTDIR}/rc.d/rc5.d/S24nfs-server + rm -f ${EXTDIR}/rc.d/rc6.d/K48nfs-server + +sil-ntpd: + rm -f ${EXTDIR}/rc.d/init.d/ntpd + rm -f ${EXTDIR}/rc.d/rc0.d/K46ntpd + rm -f ${EXTDIR}/rc.d/rc1.d/K46ntpd + rm -f ${EXTDIR}/rc.d/rc2.d/K46ntpd + rm -f ${EXTDIR}/rc.d/rc3.d/S26ntpd + rm -f ${EXTDIR}/rc.d/rc4.d/S26ntpd + rm -f ${EXTDIR}/rc.d/rc5.d/S26ntpd + rm -f ${EXTDIR}/rc.d/rc6.d/K46ntpd + +sil-slapd: + rm -f ${EXTDIR}/rc.d/init.d/slapd + rm -f ${EXTDIR}/sysconfig/slapd + rm -f ${EXTDIR}/rc.d/rc0.d/K46slapd + rm -f ${EXTDIR}/rc.d/rc1.d/K46slapd + rm -f ${EXTDIR}/rc.d/rc2.d/S25slapd + rm -f ${EXTDIR}/rc.d/rc3.d/S25slapd + rm -f ${EXTDIR}/rc.d/rc4.d/S25slapd + rm -f ${EXTDIR}/rc.d/rc5.d/S25slapd + rm -f ${EXTDIR}/rc.d/rc6.d/K46slapd + +ukur-smartd: c + rm -f ${EXTDIR}/rc.d/init.d/smartd + rm -f ${EXTDIR}/rc.d/rc0.d/K70smartd + rm -f ${EXTDIR}/rc.d/rc1.d/K70smartd + rm -f ${EXTDIR}/rc.d/rc2.d/K70smartd + rm -f ${EXTDIR}/rc.d/rc3.d/S21smartd + rm -f ${EXTDIR}/rc.d/rc4.d/S21smartd + rm -f ${EXTDIR}/rc.d/rc5.d/S21smartd + rm -f ${EXTDIR}/rc.d/rc6.d/K70smartd + +sil-postfix: + rm -f ${EXTDIR}/rc.d/init.d/postfix + rm -f ${EXTDIR}/rc.d/rc0.d/K25postfix + rm -f ${EXTDIR}/rc.d/rc1.d/K25postfix + rm -f ${EXTDIR}/rc.d/rc2.d/K25postfix + rm -f ${EXTDIR}/rc.d/rc3.d/S35postfix + rm -f ${EXTDIR}/rc.d/rc4.d/S35postfix + rm -f ${EXTDIR}/rc.d/rc5.d/S35postfix + rm -f ${EXTDIR}/rc.d/rc6.d/K25postfix + +sil-postgresql: + rm -f ${EXTDIR}/rc.d/init.d/postgresql + rm -f ${EXTDIR}/rc.d/rc0.d/K26postgresql + rm -f ${EXTDIR}/rc.d/rc1.d/K26postgresql + rm -f ${EXTDIR}/rc.d/rc2.d/K26postgresql + rm -f ${EXTDIR}/rc.d/rc3.d/S34postgresql + rm -f ${EXTDIR}/rc.d/rc4.d/S34postgresql + rm -f ${EXTDIR}/rc.d/rc5.d/S34postgresql + rm -f ${EXTDIR}/rc.d/rc6.d/K26postgresql + +sil-proftpd: + rm -f ${EXTDIR}/rc.d/init.d/proftpd + rm -f ${EXTDIR}/rc.d/rc0.d/K28proftpd + rm -f ${EXTDIR}/rc.d/rc1.d/K28proftpd + rm -f ${EXTDIR}/rc.d/rc2.d/K28proftpd + rm -f ${EXTDIR}/rc.d/rc3.d/S32proftpd + rm -f ${EXTDIR}/rc.d/rc4.d/S32proftpd + rm -f ${EXTDIR}/rc.d/rc5.d/S32proftpd + rm -f ${EXTDIR}/rc.d/rc6.d/K28proftpd + +sil-random: + rm -f ${EXTDIR}/rc.d/init.d/random + rm -f ${EXTDIR}/rc.d/rc0.d/K45random + rm -f ${EXTDIR}/rc.d/rc1.d/S25random + rm -f ${EXTDIR}/rc.d/rc2.d/S25random + rm -f ${EXTDIR}/rc.d/rc3.d/S25random + rm -f ${EXTDIR}/rc.d/rc4.d/S25random + rm -f ${EXTDIR}/rc.d/rc5.d/S25random + rm -f ${EXTDIR}/rc.d/rc6.d/K45random + +sil-rpcbind: + rm -f ${EXTDIR}/rc.d/init.d/rpcbind + rm -f ${EXTDIR}/rc.d/rc0.d/K49rpcbind + rm -f ${EXTDIR}/rc.d/rc1.d/K49rpcbind + rm -f ${EXTDIR}/rc.d/rc2.d/K49rpcbind + rm -f ${EXTDIR}/rc.d/rc3.d/S22rpcbind + rm -f ${EXTDIR}/rc.d/rc4.d/S22rpcbind + rm -f ${EXTDIR}/rc.d/rc5.d/S22rpcbind + rm -f ${EXTDIR}/rc.d/rc6.d/K49rpcbind + +sil-rsyncd: + rm -f ${EXTDIR}/rc.d/init.d/rsyncd + rm -f ${EXTDIR}/rc.d/rc0.d/K30rsyncd + rm -f ${EXTDIR}/rc.d/rc1.d/K30rsyncd + rm -f ${EXTDIR}/rc.d/rc2.d/K30rsyncd + rm -f ${EXTDIR}/rc.d/rc3.d/S30rsyncd + rm -f ${EXTDIR}/rc.d/rc4.d/S30rsyncd + rm -f ${EXTDIR}/rc.d/rc5.d/S30rsyncd + rm -f ${EXTDIR}/rc.d/rc6.d/K30rsyncd + +sil-samba: + rm -f ${EXTDIR}/rc.d/init.d/samba + rm -f ${EXTDIR}/rc.d/rc0.d/K48samba + rm -f ${EXTDIR}/rc.d/rc1.d/K48samba + rm -f ${EXTDIR}/rc.d/rc2.d/K48samba + rm -f ${EXTDIR}/rc.d/rc3.d/S45samba + rm -f ${EXTDIR}/rc.d/rc4.d/S45samba + rm -f ${EXTDIR}/rc.d/rc5.d/S45samba + rm -f ${EXTDIR}/rc.d/rc6.d/K48samba + +sil-sddm: + rm -f ${EXTDIR}/rc.d/init.d/sddm + rm -f ${EXTDIR}/rc.d/rc0.d/K05sddm + rm -f ${EXTDIR}/rc.d/rc1.d/K05sddm + rm -f ${EXTDIR}/rc.d/rc2.d/K05sddm + rm -f ${EXTDIR}/rc.d/rc3.d/K05sddm + rm -f ${EXTDIR}/rc.d/rc4.d/K05sddm + rm -f ${EXTDIR}/rc.d/rc5.d/S95sddm + rm -f ${EXTDIR}/rc.d/rc6.d/K05sddm + +sil-sendmail: + rm -f ${EXTDIR}/rc.d/init.d/sendmail + rm -f ${EXTDIR}/rc.d/rc0.d/K25sendmail + rm -f ${EXTDIR}/rc.d/rc1.d/K25sendmail + rm -f ${EXTDIR}/rc.d/rc2.d/K25sendmail + rm -f ${EXTDIR}/rc.d/rc3.d/S35sendmail + rm -f ${EXTDIR}/rc.d/rc4.d/S35sendmail + rm -f ${EXTDIR}/rc.d/rc5.d/S35sendmail + rm -f ${EXTDIR}/rc.d/rc6.d/K25sendmail + +sil-sshd: + rm -f ${EXTDIR}/rc.d/init.d/sshd + rm -f ${EXTDIR}/rc.d/rc0.d/K30sshd + rm -f ${EXTDIR}/rc.d/rc1.d/K30sshd + rm -f ${EXTDIR}/rc.d/rc2.d/K30sshd + rm -f ${EXTDIR}/rc.d/rc3.d/S30sshd + rm -f ${EXTDIR}/rc.d/rc4.d/S30sshd + rm -f ${EXTDIR}/rc.d/rc5.d/S30sshd + rm -f ${EXTDIR}/rc.d/rc6.d/K30sshd + +sil-stunnel: + rm -f ${EXTDIR}/rc.d/init.d/stunnel + rm -f ${EXTDIR}/rc.d/rc0.d/K47stunnel + rm -f ${EXTDIR}/rc.d/rc1.d/K47stunnel + rm -f ${EXTDIR}/rc.d/rc2.d/K47stunnel + rm -f ${EXTDIR}/rc.d/rc3.d/S55stunnel + rm -f ${EXTDIR}/rc.d/rc4.d/S55stunnel + rm -f ${EXTDIR}/rc.d/rc5.d/S55stunnel + rm -f ${EXTDIR}/rc.d/rc6.d/K47stunnel + +sil-svn: + rm -f ${EXTDIR}/rc.d/init.d/svn + rm -f ${EXTDIR}/rc.d/rc0.d/K27svn + rm -f ${EXTDIR}/rc.d/rc1.d/K27svn + rm -f ${EXTDIR}/rc.d/rc2.d/K27svn + rm -f ${EXTDIR}/rc.d/rc3.d/S33svn + rm -f ${EXTDIR}/rc.d/rc4.d/S33svn + rm -f ${EXTDIR}/rc.d/rc5.d/S33svn + rm -f ${EXTDIR}/rc.d/rc6.d/K27svn + +sil-sysstat: + rm -f ${EXTDIR}/rc.d/init.d/sysstat + rm -f ${EXTDIR}/rc.d/rcS.d/S85sysstat + +sil-unbound: + rm -f ${EXTDIR}/rc.d/init.d/unbound + rm -f ${EXTDIR}/rc.d/rc0.d/K79unbound + rm -f ${EXTDIR}/rc.d/rc1.d/K79unbound + rm -f ${EXTDIR}/rc.d/rc2.d/K79unbound + rm -f ${EXTDIR}/rc.d/rc3.d/S21unbound + rm -f ${EXTDIR}/rc.d/rc4.d/S21unbound + rm -f ${EXTDIR}/rc.d/rc5.d/S21unbound + rm -f ${EXTDIR}/rc.d/rc6.d/K79unbound + +sil-virtuoso: + rm -f ${EXTDIR}/rc.d/init.d/virtuoso + rm -f ${EXTDIR}/rc.d/rc0.d/K40virtuoso + rm -f ${EXTDIR}/rc.d/rc1.d/K40virtuoso + rm -f ${EXTDIR}/rc.d/rc2.d/K40virtuoso + rm -f ${EXTDIR}/rc.d/rc3.d/S47virtuoso + rm -f ${EXTDIR}/rc.d/rc4.d/S47virtuoso + rm -f ${EXTDIR}/rc.d/rc5.d/S47virtuoso + rm -f ${EXTDIR}/rc.d/rc6.d/K40virtuoso + +sil-vsftpd: + rm -f ${EXTDIR}/rc.d/init.d/vsftpd + rm -f ${EXTDIR}/rc.d/rc0.d/K28vsftpd + rm -f ${EXTDIR}/rc.d/rc1.d/K28vsftpd + rm -f ${EXTDIR}/rc.d/rc2.d/K28vsftpd + rm -f ${EXTDIR}/rc.d/rc3.d/S32vsftpd + rm -f ${EXTDIR}/rc.d/rc4.d/S32vsftpd + rm -f ${EXTDIR}/rc.d/rc5.d/S32vsftpd + rm -f ${EXTDIR}/rc.d/rc6.d/K28vsftpd + +sil-winbindd: + rm -f ${EXTDIR}/rc.d/init.d/winbindd + rm -f ${EXTDIR}/rc.d/rc0.d/K49winbindd + rm -f ${EXTDIR}/rc.d/rc1.d/K49winbindd + rm -f ${EXTDIR}/rc.d/rc2.d/K49winbindd + rm -f ${EXTDIR}/rc.d/rc3.d/S50winbindd + rm -f ${EXTDIR}/rc.d/rc4.d/S50winbindd + rm -f ${EXTDIR}/rc.d/rc5.d/S50winbindd + rm -f ${EXTDIR}/rc.d/rc6.d/K49winbindd + +sil-xinetd: + rm -f ${EXTDIR}/rc.d/init.d/xinetd + rm -f ${EXTDIR}/rc.d/rc0.d/K49xinetd + rm -f ${EXTDIR}/rc.d/rc1.d/K49xinetd + rm -f ${EXTDIR}/rc.d/rc2.d/K49xinetd + rm -f ${EXTDIR}/rc.d/rc3.d/S23xinetd + rm -f ${EXTDIR}/rc.d/rc4.d/S23xinetd + rm -f ${EXTDIR}/rc.d/rc5.d/S23xinetd + rm -f ${EXTDIR}/rc.d/rc6.d/K49xinetd + +.PHONY: all dizinleri-olustur servis-dizini-olustur \ + servis-kur-dhclient \ + servis-kur-dhcpcd \ + servis-kur-ipx \ + servis-kur-pppoe \ + kur-atd \ + kur-acpid \ + kur-alsa \ + kur-avahi \ + kur-httpd \ + kur-php \ + kur-bind \ + kur-bluetooth \ + kur-cups \ + kur-saslauthd \ + kur-wicd \ + kur-dhcpd \ + kur-dovecot \ + kur-exim \ + kur-fcron \ + kur-gdm \ + kur-gpm \ + kur-heimdal \ + kur-iptables \ + kur-krb5 \ + kur-lprng \ + kur-mysql \ + kur-netfs \ + kur-networkmanager \ + kur-nfs-client \ + kur-nfs-server \ + kur-ntpd \ + kur-slapd \ + kur-postfix \ + kur-postgresql \ + kur-proftpd \ + kur-random \ + kur-rsync \ + kur-samba \ + kur-sddm \ + kur-sendmail \ + kur-soprano \ + kur-sshd \ + kur-stunnel \ + kur-svn \ + kur-sysstat \ + kur-vsftpd \ + kur-unbound \ + kur-virtuoso \ + kur-winbindd \ + kur-xinetd \ + sil-atd \ + sil-acpid \ + sil-alsa \ + sil-avahi \ + sil-httpd \ + sil-php \ + sil-bind \ + sil-bluetooth \ + sil-cups \ + sil-saslauthd \ + sil-wicd \ + sil-dhcpd \ + sil-dovecot \ + sil-exim \ + sil-fcron \ + sil-gdm \ + sil-gpm \ + sil-heimdal \ + sil-iptables \ + sil-krb5 \ + sil-lprng \ + sil-mysql \ + sil-netfs \ + sil-networkmanager \ + sil-nfs-client \ + sil-nfs-server \ + sil-ntpd \ + sil-slapd \ + sil-postfix \ + sil-postgresql \ + sil-proftpd \ + sil-random \ + sil-rsync \ + sil-samba \ + sil-sddm \ + sil-sendmail \ + sil-soprano \ + sil-sshd \ + sil-stunnel \ + sil-svn \ + sil-sysstat \ + sil-unbound \ + sil-virtuoso \ + sil-vsftpd \ + sil-winbindd \ + sil-xinetd diff --git a/ayarlar/servisler/mbd/init.d/acpid b/ayarlar/servisler/mbd/init.d/acpid new file mode 100644 index 000000000..eb13f8b1a --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/acpid @@ -0,0 +1,59 @@ +#!/bin/sh +######################################################################## +# Begin acpid +# +# Description : ACPI event daemon boot script +# +# Author : Igor Živković +# +# Version : BLFS SVN +# +######################################################################## + +### BEGIN INIT INFO +# Provides: acpid +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts Advanced Configuration and Power Interface event daemon +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: igor $ +#$Date: 2013-07-10 17:04:20 -0500 (Wed, 10 Jul 2013) $ + +case "$1" in + start) + log_info_msg "Starting ACPI event daemon..." + start_daemon /usr/sbin/acpid + sleep 1 + pidofproc -p "/run/acpid.pid" > /dev/null + evaluate_retval + ;; + + stop) + log_info_msg "Stopping ACPI event daemon..." + killproc -p "/run/acpid.pid" /usr/sbin/acpid + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/acpid + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End acpid diff --git a/ayarlar/servisler/mbd/init.d/alsa b/ayarlar/servisler/mbd/init.d/alsa new file mode 100644 index 000000000..fa075e004 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/alsa @@ -0,0 +1,51 @@ +#!/bin/sh +######################################################################## +# Begin alsa +# +# Description : Restore and store ALSA settings +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : BLFS SVN +# +######################################################################## + +### BEGIN INIT INFO +# Provides: alsa +# Required-Start: +# Should-Start: +# Required-Stop: sendsignals +# Should-Stop: +# Default-Start: S +# Default-Stop: 0 1 6 +# Short-Description: Restore and store ALSA mixer settings. +# Description: Restores and stores ALSA mixer settings in the default +# location: /var/lib/alsa/asound.state. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: igor $ +#$Date: 2013-07-25 04:50:36 -0500 (Thu, 25 Jul 2013) $ + +case "$1" in + start) + log_info_msg "Starting ALSA... Restoring volumes..." + /usr/sbin/alsactl restore + evaluate_retval + ;; + + stop) + log_info_msg "Stopping ALSA... Saving volumes..." + /usr/sbin/alsactl store + evaluate_retval + ;; + + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +# End alsa diff --git a/ayarlar/servisler/mbd/init.d/atd b/ayarlar/servisler/mbd/init.d/atd new file mode 100644 index 000000000..31e14e5ce --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/atd @@ -0,0 +1,61 @@ +#!/bin/sh +######################################################################## +# Begin atd +# +# Description : Start atd daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: atd +# Required-Start: $time +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: atd daemon +# Description: Run jobs queued for later execution +# X-LFS-Provided-By: BLFS / LFS 7.2 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-09 15:19:23 -0500 (Wed, 09 May 2012) $ + +case "$1" in + start) + log_info_msg "Starting atd..." + start_daemon /usr/sbin/atd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping atd..." + killproc /usr/sbin/atd + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/atd + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End atd + diff --git a/ayarlar/servisler/mbd/init.d/autofs b/ayarlar/servisler/mbd/init.d/autofs new file mode 100644 index 000000000..d02f255da --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/autofs @@ -0,0 +1,157 @@ +#!/bin/bash +######################################################################## +# Begin autofs +# +# Description : Start daemon for automounting file systems +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +# Notes : Updates to autofs distributed start script to make +# compatible with BLFS +# +######################################################################## + +### BEGIN INIT INFO +# Provides: autofs +# Required-Start: $network ypbind +# Required-Stop: $network ypbind +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Automounts filesystems on demand +# Description: Automounts filesystems on demand +### END INIT INFO + +# +# Location of the automount daemon and the init directory +# +DAEMON=/sbin/automount +prog=`basename $DAEMON` +MODULE="autofs4" +DEVICE="autofs" +confdir=/etc/sysconfig + +test -e $DAEMON || exit 0 + +PATH=/sbin:/usr/sbin:/bin:/usr/bin +export PATH + +# +# load customized configuation settings +# +if [ -r $confdir/autofs ]; then + . $confdir/autofs +fi + +. /lib/lsb/init-functions + +function start() { + log_info_msg "Starting $prog: " + + # Make sure autofs4 module is loaded + if ! grep -q autofs /proc/filesystems + then + # Try load the autofs4 module fail if we can't + modprobe $MODULE >/dev/null 2>&1 + if [ $? -eq 1 ] + then + log_failure_msg "Error: failed to load autofs4 module." + return 1 + fi + elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4] + then + # wrong autofs filesystem module loaded + log_failure_msg "Error: autofs kernel module is loaded, autofs4 required" + return 1 + fi + + # Check misc device + if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then + sleep 1 + if [ -e "/proc/misc" ]; then + MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc` + if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then + mknod -m 0600 /dev/$DEVICE c 10 $MINOR + fi + fi + if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then + /sbin/restorecon /dev/$DEVICE + fi + else + if [ -c /dev/$DEVICE ]; then + rm /dev/$DEVICE + fi + fi + + $prog $OPTIONS + evaluate_retval +} + +function stop() { + log_info_msg $"Stopping $prog: " + count=0 + while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do + killall -TERM $prog >& /dev/null + RETVAL=$? + [ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3 + count=`expr $count + 1` + done + if [ -z "`pidof $prog`" ] ; then + log_success_msg2 + else + log_failure_msg2 + fi + return $RETVAL +} + +function restart() { + stop + start +} + +function reload() { + pid=`pidof $prog` + if [ -z $pid ]; then + log_failure_msg2 $"$prog not running" + RETVAL=1 + else + kill -HUP $pid 2> /dev/null + log_success_msg2 $"Reloading maps" + RETVAL=0 + fi + return $RETVAL +} + +RETVAL=0 + +case "$1" in + start) + start + ;; + forcestart) + OPTIONS="$OPTIONS --force" + start + ;; + stop) + stop + ;; + restart) + restart + ;; + forcerestart) + OPTIONS="$OPTIONS --force" + restart + ;; + reload) + reload + ;; + *) + echo $"Usage: $0 {start|forcestart|stop|restart|forcerestart|reload}" + exit 1; + ;; +esac + +exit $? + + diff --git a/ayarlar/servisler/mbd/init.d/avahi b/ayarlar/servisler/mbd/init.d/avahi new file mode 100644 index 000000000..18a052784 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/avahi @@ -0,0 +1,77 @@ +#!/bin/sh +######################################################################## +# Begin avahi +# +# Description : Avahi Boot Script +# +# Authors : William Immendorf - will.immendorf@gmail.com +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: avahi +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Service discovery on a local network +# Description: Service discovery on a local network +# X-LFS-Provided-By: BLFS / LFS 7.2 +### END INIT INFO + +. /lib/lsb/init-functions + +case "${1}" in + start) + log_info_msg "Starting the Avahi Daemon" + /usr/sbin/avahi-daemon -D + evaluate_retval + + log_info_msg "Starting the Avahi mDNS/DNS-SD Configuration Daemon" + /usr/sbin/avahi-dnsconfd -D + evaluate_retval + ;; + + stop) + log_info_msg "Stopping the Avahi mDNS/DNS-SD Configuration Daemon" + /usr/sbin/avahi-dnsconfd -k + evaluate_retval + + log_info_msg "Stopping the Avahi Daemon" + /usr/sbin/avahi-daemon -k + evaluate_retval + ;; + + reload) + log_info_msg "Reloading the Avahi mDNS/DNS-SD Configuration Daemon" + /usr/sbin/avahi-dnsconfd -r + evaluate_retval + + log_info_msg "Reloading the Avahi Daemon" + /usr/sbin/avahi-daemon -r + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc avahi-daemon + statusproc avahi-dnsconfd + ;; + + *) + echo "Usage: ${0} {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/avahi diff --git a/ayarlar/servisler/mbd/init.d/bind b/ayarlar/servisler/mbd/init.d/bind new file mode 100644 index 000000000..0e1f283ac --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/bind @@ -0,0 +1,68 @@ +#!/bin/sh + +######################################################################## +# Begin bind +# +# Description : Start Berkeley Internet Name Daemon +# +# Author : DJ Lucas - dj@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: bind +# Required-Start: $time $network +# Should-Start: +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: DNS Daemon +# Description: Provides a local DNS daemon in a chroot environment +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: randy $ +#$Date: 2013-02-12 10:13:34 -0600 (Tue, 12 Feb 2013) $ + +case "$1" in + start) + log_info_msg "Starting named..." + start_daemon /usr/sbin/named -u named -t /srv/named -c /etc/named.conf + evaluate_retval + ;; + + stop) + log_info_msg "Stopping named..." + killproc /usr/sbin/named + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + reload) + log_info_msg "Reloading named..." + /usr/sbin/rndc -c /etc/rndc.conf reload + evaluate_retval + ;; + + status) + statusproc /usr/sbin/named + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/bind diff --git a/ayarlar/servisler/mbd/init.d/bluetooth b/ayarlar/servisler/mbd/init.d/bluetooth new file mode 100644 index 000000000..a0e1abc6c --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/bluetooth @@ -0,0 +1,139 @@ +#!/bin/sh +######################################################################## +# Begin bluetooth +# +# Description : BlueZ Boot Script +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +# Notes : Configurable through /etc/sysconfig/bluetooth +# : Rewritten May 29, 2014 for bluez-5 by +# Bruce Dubbs +# +######################################################################## + +### BEGIN INIT INFO +# Provides: bluetooth +# Required-Start: $local_fs $syslog dbus +# Required-Stop: $local_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts bluetooth daemons +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +if [ -f "/etc/sysconfig/bluetooth" ]; then + . /etc/sysconfig/bluetooth +fi + +BLUETOOTH=/usr/sbin/bluetoothd +SDPTOOL=/usr/bin/sdptool +HCIATTACH=/usr/bin/hciattach +RFCOMM=/usr/bin/rfcomm + +UART_CONF=/etc/bluetooth/uart.conf +RFCOMM_CONF=/etc/bluetooth/rfcomm.conf + +start_hci_dev() +{ + for dev in ${ACTIVE_HCI_DEVICES_ON_BOOT} ; do + hciconfig $dev up > /dev/null 2>&1 + done +} + +run_sdptool() +{ + # Declaring IFS local in this function, removes the need to + # save/restore it + local IFS option + + test -x $SDPTOOL || return 1 + + IFS=";" + for option in ${SDPTOOL_OPTIONS}; do + IFS=" " + $SDPTOOL $option > /dev/null 2>&1 + done +} + +start_uarts() +{ + [ -x $HCIATTACH ] && [ -f $UART_CONF ] || return + + grep -v '^[[:space:]]*(#|$)' $UART_CONF | while read i; do + $HCIATTACH $i > /dev/null 2>&1 + done +} + +stop_uarts() +{ + [ -x $HCIATTACH ] || return + killall $HCIATTACH > /dev/null 2>&1 +} + +start_rfcomm() +{ + [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] || return + + $RFCOMM -f $RFCOMM_CONF bind all > /dev/null 2>&1 || : +} + +stop_rfcomm() +{ + [ -x $RFCOMM ] || return + $RFCOMM unbind all > /dev/null 2>&1 +} + +case "${1}" in + start) + log_info_msg "Starting Bluetooth daemon bluetoothd..." + pidlist=`pidofproc $BLUETOOTH` + + if [ "${?}" = "0" ]; then + log_info_msg2 " Already running" + log_success_msg2 + exit 0; + fi + + # Start as background process and assume OK + $BLUETOOTH & + log_success_msg2 + + start_hci_dev + run_sdptool + start_uarts + start_rfcomm + ;; + + stop) + stop_rfcomm + stop_uarts + + log_info_msg "Stopping Bluetooth daemon bluetoothd..." + killproc $BLUETOOTH + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc $BLUETOOTH + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End bluetooth diff --git a/ayarlar/servisler/mbd/init.d/cups b/ayarlar/servisler/mbd/init.d/cups new file mode 100644 index 000000000..ae82bc67a --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/cups @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin cups +# +# Description : Start cups daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: cups +# Required-Start: $network +# Should-Start: $remote_fs haldaemon +# Required-Stop: $network +# Should-Stop: haldaemon $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts cups print daemon. +# Description: Starts cups print daemon. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: dj $ +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $ + +case $1 in + start) + log_info_msg "Starting CUPS Printserver..." + start_daemon /usr/sbin/cupsd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping CUPS Printserver..." + killproc /usr/sbin/cupsd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading CUPS Printserver..." + killproc /usr/sbin/cupsd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/cupsd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/cups diff --git a/ayarlar/servisler/mbd/init.d/dbus b/ayarlar/servisler/mbd/init.d/dbus new file mode 100644 index 000000000..4745f5afd --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/dbus @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin dbus +# +# Description : Start dbus daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: dbus +# Required-Start: cleanfs +# Should-Start: $remote_fs +# Required-Stop: sendsignals +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts message bus. +# Description: Starts message bus. +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-02 15:39:55 -0500 (Wed, 02 May 2012) $ + +pidfile=/run/dbus/pid +socket=/run/dbus/system_bus_socket + +case "$1" in + start) + log_info_msg "Starting the D-Bus Messagebus Daemon..." + mkdir -p /run/dbus + /usr/bin/dbus-uuidgen --ensure + start_daemon /usr/bin/dbus-daemon --system + evaluate_retval + ;; + + stop) + log_info_msg "Stopping the D-Bus Messagebus Daemon..." + killproc /usr/bin/dbus-daemon + evaluate_retval + rm -f $socket $pidfile + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/dbus-daemon + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/dbus diff --git a/ayarlar/servisler/mbd/init.d/dhcpd b/ayarlar/servisler/mbd/init.d/dhcpd new file mode 100644 index 000000000..fc59d2ec1 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/dhcpd @@ -0,0 +1,74 @@ +#!/bin/sh +######################################################################## +# Begin dhcpd +# +# Description : ISC DHCP Server Boot Script. +# +# Author : +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: dhcpd +# Required-Start: network +# Required-Stop: sendsignals +# Default-Start: 2 3 4 5 +# Default-Stop: 0 2 6 +# Short-Description: Starts the ISC DHCP Server. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-06-11 10:49:17 -0500 (Tue, 11 Jun 2013) $ + +INTERFACES="" +OPTIONS="" + +if [ -f "/etc/sysconfig/dhcpd" ]; then + . /etc/sysconfig/dhcpd +fi + +case "$1" in + start) + + if [ -z "$INTERFACES" ]; then + MSG="You need to configure dhcp server in" + log_warning_msg "$MSG /etc/sysconfig/dhcpd" + exit 0 + fi + + log_info_msg "Starting ISC DHCP Server dhcpd" + start_daemon /usr/sbin/dhcpd -q $INTERFACES $OPTIONS + evaluate_retval + + ;; + + stop) + + log_info_msg "Stopping ISC DHCP Server dhcpd" + killproc /usr/sbin/dhcpd + evaluate_retval + + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/dhcpd + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/dhcpd diff --git a/ayarlar/servisler/mbd/init.d/dovecot b/ayarlar/servisler/mbd/init.d/dovecot new file mode 100644 index 000000000..f4f4ffd77 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/dovecot @@ -0,0 +1,64 @@ +#!/bin/sh +######################################################################## +# Begin dovecot +# +# Description : Dovecot server init script +# +# Author : Igor Živković +# +# Version : BLFS SVN +# +######################################################################## + + +### BEGIN INIT INFO +# Provides: dovecot +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Dovecot init script +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy$ +#$Date$ + +case "$1" in + start) + log_info_msg "Starting Dovecot server..." + start_daemon /usr/sbin/dovecot + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Dovecot server..." + killproc -p "/run/dovecot/master.pid" /usr/sbin/dovecot + evaluate_retval + ;; + + reload) + log_info_msg "Reloading Dovecot server..." + killproc -p "/run/dovecot/master.pid" /usr/sbin/dovecot -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/dovecot + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End dovecot diff --git a/ayarlar/servisler/mbd/init.d/exim b/ayarlar/servisler/mbd/init.d/exim new file mode 100644 index 000000000..0d72f4b14 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/exim @@ -0,0 +1,60 @@ +#!/bin/sh +######################################################################## +# Begin exim +# +# Description : Starts Postfix Mail Trasfer Agent +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: exim +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs openldap mysql postgresql saslauthd +# Required-Stop: $network +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Exim MTA +# Description: Controls the Exim Mail Transfer Agent +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-06 23:36:06 -0500 (Sun, 06 May 2012) $ + +case "$1" in + start) + log_info_msg "Starting Exim..." + start_daemon /usr/sbin/exim -bd -q15m + evaluate_retval + ;; + + stop) + log_info_msg "Stopping exim..." + killproc /usr/sbin/exim + evaluate_retval + ;; + + status) + statusproc /usr/sbin/exim + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|status|restart}" + exit 1 + ;; +esac + +# End /etc/init.d/exim diff --git a/ayarlar/servisler/mbd/init.d/fcron b/ayarlar/servisler/mbd/init.d/fcron new file mode 100644 index 000000000..9e62fd254 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/fcron @@ -0,0 +1,53 @@ +#!/bin/sh +# Begin /etc/init.d/fcron + +### BEGIN INIT INFO +# Provides: fcron +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog +# Required-Stop: $local_fs +# Should-Stop: $remote_fs $syslog +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts fcron. +# Description: Starts fcron daemon. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +BIN_FILE="/usr/sbin/fcron" + +#$LastChangedBy: bdubbs $ +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting fcron..." + start_daemon ${BIN_FILE} + evaluate_retval + ;; + + stop) + log_info_msg "Stopping fcron..." + killproc ${BIN_FILE} + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc ${BIN_FILE} + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/fcron diff --git a/ayarlar/servisler/mbd/init.d/gdm b/ayarlar/servisler/mbd/init.d/gdm new file mode 100644 index 000000000..4964539e1 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/gdm @@ -0,0 +1,58 @@ +#!/bin/sh +######################################################################## +# Begin gdm +# +# Description : GDM Boot Script +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +######################################################################## + +### BEGIN INIT INFO +# Provides: gdm +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: GNOME Display Manager +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +GDM_BINARY=/usr/sbin/gdm + +case "${1}" in + start) + log_info_msg "Starting GNOME Display Manager GDM" + start_daemon ${GDM_BINARY} + evaluate_retval + ;; + + stop) + log_info_msg "Stopping GNOME Display Manager GDM" + killproc ${GDM_BINARY} + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc ${GDM_BINARY} + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End gdm diff --git a/ayarlar/servisler/mbd/init.d/gpm b/ayarlar/servisler/mbd/init.d/gpm new file mode 100644 index 000000000..306bafbc7 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/gpm @@ -0,0 +1,83 @@ +#!/bin/sh +####################################################################### +# Begin /etc/init.d/gpm +# +# Description : Start GPM Console Mouse Service +# +# Author : DJ Lucas - dj@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: gpm +# Required-Start: $network $local_fs +# Should-Start: +# Required-Stop: $local_fs $network +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts and stops the GPM console mouse service. +# Description: Starts and stops the GPM console mouse service. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-03-23 21:43:45 -0500 (Fri, 23 Mar 2012) $ + +pidfile="/run/gpm.pid" + +[ -f /etc/sysconfig/mouse ] && source /etc/sysconfig/mouse + +case "${1}" in + start) + log_info_msg "Starting GPM console mouse service..." + if [ "${MDEVICE}" = "" -o "${PROTOCOL}" = "" ]; then + log_info_msg2 "invalid configuration" + log_failure_msg + exit 2 + fi + start_daemon /usr/sbin/gpm -m "${MDEVICE}" -t "${PROTOCOL}" ${GPMOPTS} + evaluate_retval + ;; + + stop) + log_info_msg "Stopping GPM console mouse service..." + killproc /usr/sbin/gpm + evaluate_retval + ;; + + force-reload) + # gpm does not honor SIGHUP, restart if running + kill -0 `pidofproc -p "${pidfile}" /usr/sbin/gpm` 2>/dev/null + if [ "${?}" = "0" ]; then + ${0} restart + else + log_info_msg "Force reloading GPM console mouse service..." + log_info_msg2 "not running" + log_failure_msg + fi + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc /usr/sbin/gpm + ;; + + *) + echo "Usage: ${0} {start|stop|force-reload|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End /etc/init.d/gpm diff --git a/ayarlar/servisler/mbd/init.d/haveged b/ayarlar/servisler/mbd/init.d/haveged new file mode 100644 index 000000000..07b4342dd --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/haveged @@ -0,0 +1,55 @@ +#!/bin/sh +######################################################################## +# Begin haveged +# +# Description : Start haveged daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.5 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: haveged +# Required-Start: +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: haveged daemon +# Description: Provide increased entropy to /dev/random +# X-LFS-Provided-By: BLFS / LFS 7.6 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-09 15:19:23 -0500 (Wed, 09 May 2012) $ + +case "$1" in + start) + log_info_msg "Starting haveged..." + start_daemon /usr/sbin/haveged + evaluate_retval + ;; + + stop) + log_info_msg "Stopping haveged..." + killproc /usr/sbin/haveged + evaluate_retval + ;; + + status) + statusproc /usr/sbin/haveged + ;; + + *) + echo "Usage: $0 {start|stop|status}" + exit 1 + ;; +esac + +# End haveged + diff --git a/ayarlar/servisler/mbd/init.d/hiawatha b/ayarlar/servisler/mbd/init.d/hiawatha new file mode 100755 index 000000000..b482bdfef --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/hiawatha @@ -0,0 +1,33 @@ +#!/bin/sh +# +# /etc/rc.d/hiawatha: başlatma/durdurma hiawatha web sunucu +# + +. /lib/lsb/init-functions +_PID=/var/run/hiawatha.pid + +case $1 in +start) + log_info_msg "Hiawatha başlatılıyor..." + /usr/bin/hiawatha + evaluate_retval + ;; +stop) + log_info_msg "Hiawatha durduruluyor..." + if [ -f $_PID ]; then + kill `cat $_PID` + else + killall -9 /usr/bin/hiawatha + fi + evaluate_retval + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "Kullanım: $0 [start|stop|restart]" + exit 1 + ;; +esac diff --git a/ayarlar/servisler/mbd/init.d/httpd b/ayarlar/servisler/mbd/init.d/httpd new file mode 100644 index 000000000..d55388f50 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/httpd @@ -0,0 +1,62 @@ +#!/bin/sh +####################################################################### +# Begin /etc/init.d/httpd +# +# Description : Start Apache Web Server +# +# Author : DJ Lucas - dj@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: httpd +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Apache HTTP Server +# Description: Controls the Apache HTTP Daemon +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-01-26 22:28:34 -0600 (Sat, 26 Jan 2013) $ + +case "$1" in + start) + log_info_msg "Starting Apache HTTP daemon..." + mkdir -p /var/run/httpd + start_daemon /usr/sbin/apachectl -k start + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Apache HTTP daemon..." + start_daemon /usr/sbin/apachectl -k stop + evaluate_retval + ;; + + restart) + log_info_msg "Restarting Apache HTTP daemon..." + start_daemon /usr/sbin/apachectl -k restart + evaluate_retval + ;; + + status) + statusproc /usr/sbin/httpd + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/httpd diff --git a/ayarlar/servisler/mbd/init.d/iptables b/ayarlar/servisler/mbd/init.d/iptables new file mode 100644 index 000000000..f1568638a --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/iptables @@ -0,0 +1,84 @@ +#!/bin/sh +######################################################################## +# Begin iptables +# +# Description : Start iptables +# +# Authors : Ken Moffat - ken@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: iptables +# Required-Start: +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: +# Short-Description: Loads iptables rules. +# Description: Iptables provides firewall for Linux systems. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-06-11 11:01:46 -0500 (Tue, 11 Jun 2013) $ + +case "$1" in + start) + if [ -x /etc/rc.d/rc.iptables ]; then + log_info_msg "Starting iptables..." + /etc/rc.d/rc.iptables + evaluate_retval + fi + ;; + + lock) + log_info_msg "Locking system iptables firewall..." + /sbin/iptables --policy INPUT DROP + /sbin/iptables --policy OUTPUT DROP + /sbin/iptables --policy FORWARD DROP + /sbin/iptables --flush + /sbin/iptables -t nat --flush + /sbin/iptables -t mangle --flush + /sbin/iptables --delete-chain + /sbin/iptables -t nat --delete-chain + /sbin/iptables -t mangle --delete-chain + /sbin/iptables -A INPUT -i lo -j ACCEPT + /sbin/iptables -A OUTPUT -o lo -j ACCEPT + evaluate_retval + ;; + + clear) + log_info_msg "Clearing system iptables iptables..." + /sbin/iptables --policy INPUT ACCEPT + /sbin/iptables --policy OUTPUT ACCEPT + /sbin/iptables --policy FORWARD ACCEPT + /sbin/iptables --flush + /sbin/iptables -t nat --flush + /sbin/iptables -t mangle --flush + /sbin/iptables --delete-chain + /sbin/iptables -t nat --delete-chain + /sbin/iptables -t mangle --delete-chain + evaluate_retval + ;; + + status) + /sbin/iptables --numeric --list + /sbin/iptables -t nat --numeric --list + /sbin/iptables -t mangle --numeric --list + ;; + + *) + echo "Usage: $0 {start|clear|lock|status}" + exit 1 + ;; +esac + +# End /etc/init.d/iptables + diff --git a/ayarlar/servisler/mbd/init.d/krb5 b/ayarlar/servisler/mbd/init.d/krb5 new file mode 100644 index 000000000..167e98d7b --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/krb5 @@ -0,0 +1,70 @@ +#!/bin/sh +######################################################################## +# Begin krb5 +# +# Description : MIT Kerberos Boot Script. +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +# Notes : +# +######################################################################## + +### BEGIN INIT INFO +# Provides: krb5 +# Required-Start: $local_fs $remote_fs $network $syslog +# Required-Stop: $local_fs $remote_fs $network $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: MIT Kerberos KDC and Admin Server +# Description: Starts, stops or restarts the MIT Kerberos KDC, +# Admin Server and Database Propagation Server. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +case "${1}" in + start) + log_info_msg "Starting Kerberos KDC krb5kdc" + start_daemon /usr/sbin/krb5kdc + log_info_msg "Starting Kerberos administrative server kadmind" + start_daemon /usr/sbin/kadmind + log_info_msg "Starting Kerberos database propagation server kpropd" + start_daemon /usr/sbin/kpropd -S + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Kerberos database propagation server kpropd" + killproc /usr/sbin/kpropd + log_info_msg "Stopping Kerberos administrative server kadmind" + killproc /usr/sbin/kadmind + log_info_msg "Stopping Kerberos KDC krb5kdc" + killproc /usr/sbin/krb5kdc + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc /usr/sbin/krb5kdc + statusproc /usr/sbin/kadmind + statusproc /usr/sbin/kpropd + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End krb5 diff --git a/ayarlar/servisler/mbd/init.d/lprng b/ayarlar/servisler/mbd/init.d/lprng new file mode 100644 index 000000000..09ddb2394 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/lprng @@ -0,0 +1,67 @@ +#!/bin/sh +######################################################################## +# Begin lprng +# +# Description : Start lpd daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: lprng +# Required-Start: $local_fs +# Should-Start: $remote_fs +# Required-Stop: $local_fs +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts lpd daemon. +# Description: Starts an implementation of the Berkeley LPR print +# spooler functionality. +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting lpd..." + start_daemon /usr/sbin/lpd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping lpd..." + killproc /usr/sbin/lpd + evaluate_retval + ;; + + reload) + boot_mesg "Reloading lpd..." + killproc /usr/sbin/lpd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/lpd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/lprng diff --git a/ayarlar/servisler/mbd/init.d/lxdm b/ayarlar/servisler/mbd/init.d/lxdm new file mode 100644 index 000000000..b707026f5 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/lxdm @@ -0,0 +1,53 @@ +#!/bin/sh +# Begin /etc/rc.d/init.d/lxdm + +### BEGIN INIT INFO +# Provides: lxdm +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog +# Required-Stop: $local_fs +# Should-Stop: $remote_fs $syslog +# Default-Start: 5 +# Default-Stop: 0 1 2 3 4 6 +# Short-Description: Starts lxdm. +# Description: Starts lxdm daemon. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +BIN_FILE="/usr/sbin/lxdm" + +#$LastChangedBy: ken $ +#$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $ + +case $1 in + start) + log_info_msg "Starting LXDM..." + start_daemon $BIN_FILE -d + evaluate_retval + ;; + + stop) + log_info_msg "Stopping LXDM..." + killproc $BIN_FILE + evaluate_retval + ;; + + restart) + $0 stop + sleep 2 + $0 start + ;; + + status) + statusproc ${BIN_FILE} + ;; + + *) + echo "usage: $0 [start|stop|restart|status]" + exit 1 + ;; +esac + +# End /etc/rc.d/init.d/lxdm diff --git a/ayarlar/servisler/mbd/init.d/mysql b/ayarlar/servisler/mbd/init.d/mysql new file mode 100644 index 000000000..6763a052e --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/mysql @@ -0,0 +1,86 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/mysql +# +# Description : Start MysSQL Server +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: mysql +# Required-Start: $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts MySQL server. +# Description: Starts MySQL server. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: igor $ +#$Date: 2014-10-11 03:51:32 -0500 (Sat, 11 Oct 2014) $ + +PIDFILE=/srv/mysql/`/bin/hostname`.pid + +case "$1" in + start) + log_info_msg "Starting MySQL daemon..." + + # Make sure the mysql user can create a socket + mkdir -p /run/mysqld + chown mysql.mysql /run/mysqld + + if [ -f "$PIDFILE" ]; then + if /bin/ps -e | grep `cat $PIDFILE` | grep mysqld >/dev/null ; then + log_warning_msg "\n mysqld already running!" + exit 0 + else + rm -f "$PIDFILE" + if [ -f "$PIDFILE" ]; then + log_failure_msg2 + exit 1 + fi + fi + fi + + /usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null & + evaluate_retval + ;; + + stop) + log_info_msg "Stopping MySQL daemon..." + killproc -p ${PIDFILE} /usr/sbin/mysqld + evaluate_retval + ;; + + reload) + log_info_msg "Reloading MySQL ..." + killproc -p ${PIDFILE} /usr/sbin/mysqld -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/mysqld + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/mysql diff --git a/ayarlar/servisler/mbd/init.d/netfs b/ayarlar/servisler/mbd/init.d/netfs new file mode 100644 index 000000000..e450ebea5 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/netfs @@ -0,0 +1,106 @@ +#!/bin/sh +######################################################################## +# Begin netfs +# +# Description : Mount network filesystems +# +# Author : Nathan Coulson - conathan@conet.dyndns.org +# DJ Lucas - dj@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: $remote_fs +# Required-Start: $network +# Should-Start: nfs-client nfs-server +# Required-Stop: $network +# Should-Stop: nfs-server nfs-client +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Mounts network volumes. +# Description: Mounts anything marked as _netdev, and umounts and mounted +# _netfs, smbfs, ncpfd, coda, or nfs volumes +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-04-18 16:56:10 -0500 (Wed, 18 Apr 2012) $ + +case "$1" in + start) + # The following line mounts all entries in fstab that + # have the _netdev option. This is required for network + # filesystems to be mounted at boot time. + log_info_msg "Mounting network volumes..." + /bin/mount -a -O _netdev + evaluate_retval + ;; + + stop) + log_info_msg "Unmounting network volumes..." + + # The following line obtains a list from the output of + # mount for all netfs types and anything that was + # mounted with the _netdev option. + NETMOUNTS=`/bin/mount \ + | /bin/grep '_netdev\|smbfs\|ncpfs\|coda\|nfs\|cifs' \ + | /usr/bin/cut -d " " -f 3 | /bin/sed ':a;$!N;s/\n/ /;ta'` + + # Check to see if anything was listed from above + # (see if anything is actually needs to be unmounted) + if [ x"$NETMOUNTS" != x ]; then + # There is something mounted + + # Try and stop processes the nice way + # (probably won't work in most cases) + /bin/fuser -SIGTERM -km $NETMOUNTS > /dev/null + + # Check and see if it found anything. If it + # did, then give 3 seconds for things to exit + # the nice way before killing them off. + # This one will work all of the time! + if [ $? = 0 ]; then + /bin/sleep ${KILLDELAY:-3} # Default is 3, not minus 3 + /bin/fuser -km $NETMOUNTS > /dev/null + fi + + # We now need to unmount all network filesystems. + # We will do this with two umount commands to allow + # for broken behavior of smbmount, and also to make + # certain that netmounts without the _netdev option + # will still get unmounted. + /bin/umount -af -O _netdev + + # Save the return value + NERRVAL=$? + + # Now catch the rest of the network filesystems + # by fstype. This list can be extended later as + # more network filesystems are supported by mount. + /bin/umount -af -t coda,ncpfs,nfs,smbfs,nfsd,cifs + + if [ $? = 0 -a $NERRVAL = 0 ]; then + (exit 0) + else + (exit 1) + fi + + evaluate_retval + + else + # There is nothing mounted + log_success_msg2 "No network volumes mounted!" + fi + ;; + +*) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +# End /etc/init.d/netfs diff --git a/ayarlar/servisler/mbd/init.d/networkmanager b/ayarlar/servisler/mbd/init.d/networkmanager new file mode 100644 index 000000000..ba1736cc1 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/networkmanager @@ -0,0 +1,65 @@ +#!/bin/sh +######################################################################## +# Begin networkmanager +# +# Description : NetworkManager Boot Script +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +# Notes : +# +######################################################################## + +### BEGIN INIT INFO +# Provides: networkmanager +# Required-Start: $remote_fs dbus udev +# Required-Stop: $remote_fs dbus udev +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Network connection manager. +# Description: Daemon for automatically switching network +# connections to the best available connection. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +case "${1}" in + start) + + if [ ! -d /var/run/NetworkManager ]; then + install -d -o root -g root -m 755 /var/run/NetworkManager + fi + + log_info_msg "Starting network connection manager NetworkManager" + start_daemon /usr/sbin/NetworkManager + evaluate_retval + ;; + + stop) + log_info_msg "Stopping network connection manager NetworkManager" + killproc /usr/sbin/NetworkManager + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc /usr/sbin/NetworkManager + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End networkmanager diff --git a/ayarlar/servisler/mbd/init.d/nfs-client b/ayarlar/servisler/mbd/init.d/nfs-client new file mode 100644 index 000000000..adde9a51b --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/nfs-client @@ -0,0 +1,61 @@ +#!/bin/sh +######################################################################## +# Begin nfs-client +# +# Description : Start statd +# +# Authors : Ken Moffat - ken@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: nfs-client +# Required-Start: rpcbind +# Should-Start: +# Required-Stop: rpcbind +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts statd +# Description: rpc.statd provides file locking on nfs. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2015-02-09 15:49:11 -0600 (Mon, 09 Feb 2015) $ + +case "$1" in + start) + log_info_msg "Starting NFS statd..." + start_daemon /usr/sbin/rpc.statd --no-notify + evaluate_retval + ;; + + stop) + log_info_msg "Stopping NFS statd..." + killproc /usr/sbin/rpc.statd + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/rpc.statd + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/nfs-client diff --git a/ayarlar/servisler/mbd/init.d/nfs-server b/ayarlar/servisler/mbd/init.d/nfs-server new file mode 100644 index 000000000..c6731e07e --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/nfs-server @@ -0,0 +1,119 @@ +#!/bin/sh +######################################################################## +# Begin nfs-server +# +# Description : Start nfs server +# +# Authors : Ken Moffat - ken@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: nfs-server +# Required-Start: rpcbind +# Should-Start: +# Required-Stop: rpcbind +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts the nfs server +# Description: Starts the nfs server and exports directories. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + + #$LastChangedBy: bdubbs $ + #$Date: 2017-01-27 11:55:21 -0600 (Fri, 27 Jan 2017) $ + + . /etc/sysconfig/nfs-server + + case "$1" in + start) + log_info_msg "Starting NFS statd..." + start_daemon /usr/sbin/rpc.statd --no-notify + evaluate_retval + + log_info_msg "Starting NFS nfsd..." + start_daemon /usr/sbin/rpc.nfsd -p $PORT $PROCESSES + evaluate_retval + + if [ "$QUOTAS" = "yes" ]; then + log_info_msg "Starting NFS rquotad..." + start_daemon /usr/sbin/rpc.rquotad + evaluate_retval + fi + + log_info_msg "Starting NFS mountd..." + start_daemon /usr/sbin/rpc.mountd + evaluate_retval + + # Make certain that the list is refreshed on a restart. + log_info_msg "Exporting NFS Filesystems..." + /usr/sbin/exportfs -ra 2>&1 > /dev/null + evaluate_retval + ;; + + stop) + log_info_msg "Removing NFS Exported Filesystems..." + /usr/sbin/exportfs -au 2>&1 > /dev/null + evaluate_retval + + if [ "$QUOTAS" = "yes" ]; then + log_info_msg "Stopping NFS rquotad..." + killproc /usr/sbin/rpc.rquotad + evaluate_retval + fi + + log_info_msg "Stopping NFS statd..." + killproc /usr/sbin/rpc.statd + evaluate_retval + + log_info_msg "Stopping NFS nfsd..." + # nfsd needs HUP. Can't use killproc for kernel process. + killall -HUP nfsd + evaluate_retval + + log_info_msg "Stopping NFS mountd..." + killproc /usr/sbin/rpc.mountd + evaluate_retval + + # Remove a pid file that isn't done automatically + if [ -f /var/run/rpc.statd.pid ]; then + log_success_msg "Removing the rpc.statd pid file if it exists" + rm -f /var/run/rpc.statd.pid + fi + ;; + + reload) + log_info_msg "Reloading NFS Server..." + /usr/sbin/exportfs -ra + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/rpc.mountd + ## Special case for nfsd with no full path + statusproc nfsd + statusproc /usr/sbin/rpc.statd + if [ "$QUOTAS" = "yes" ]; then + statusproc rpc.rquotad + fi + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/nfs-server diff --git a/ayarlar/servisler/mbd/init.d/ntpd b/ayarlar/servisler/mbd/init.d/ntpd new file mode 100644 index 000000000..2b88e107d --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/ntpd @@ -0,0 +1,62 @@ +#!/bin/sh +######################################################################## +# Begin ntpd +# +# Description : Start Network Time Protocol daemon +# +# Author : DJ Lucas - dj@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: ntpd +# Required-Start: $time $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: NTP Network Time Protocol +# Description: NTP Syncronizes time with time servers worldwide +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: igor $ +#$Date: 2013-08-02 15:27:17 -0500 (Fri, 02 Aug 2013) $ + +case "$1" in + start) + log_info_msg "Starting ntpd..." + start_daemon /usr/sbin/ntpd -g -u ntp:ntp + evaluate_retval + ;; + + stop) + log_info_msg "Stopping ntpd..." + killproc /usr/sbin/ntpd + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/ntpd + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End ntpd + diff --git a/ayarlar/servisler/mbd/init.d/php-fpm b/ayarlar/servisler/mbd/init.d/php-fpm new file mode 100644 index 000000000..18207fc0a --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/php-fpm @@ -0,0 +1,132 @@ +#! /bin/sh +####################################################################### +# Begin /etc/init.d/php-fpm +# +# Description : Start the PHP fastCGI Proces Manager +# +# Author : P Labastie - pierre.labastie@neuf.fr +# from a file shipped with the PHP pacakge +# +# Version : LFS 7.5 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: php-fpm +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: starts php-fpm +# Description: starts the PHP FastCGI Process Manager daemon +# X-LFS-Provided-By: BLFS / LFS 7.5 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: pierre $ +#$Date: 2014-03-29 04:48:53 -0500 (Sat, 29 Mar 2014) $ + +prefix=/usr +exec_prefix=${prefix} + +php_fpm_BIN=${exec_prefix}/sbin/php-fpm +php_fpm_CONF=/etc/php-fpm.conf +php_fpm_PID=/var/run/php-fpm.pid + + +php_opts="--fpm-config $php_fpm_CONF --pid $php_fpm_PID" + + +wait_for_pid () { + try=0 + + while test $try -lt 35 ; do + + case "$1" in + 'created') + if [ -f "$2" ] ; then + try='' + break + fi + ;; + + 'removed') + if [ ! -f "$2" ] ; then + try='' + break + fi + ;; + esac + + echo -n . + try=`expr $try + 1` + sleep 1 + + done + +} + +case "$1" in + start) + log_info_msg "Starting PHP fastCGI Process Manager..." + + start_daemon $php_fpm_BIN --daemonize $php_opts + + if [ "$?" != 0 ] ; then + log_failure_msg2 + exit + fi + + wait_for_pid created $php_fpm_PID + + if [ -n "$try" ] ; then + log_failure_msg2 + else + log_success_msg2 + fi + ;; + + stop) + log_info_msg "Stopping PHP fastCGI Process Manager..." + + if [ ! -r $php_fpm_PID ] ; then + log_warning_msg "php-fpm not running?" + exit + fi + + killproc -p $php_fpm_PID $php_fpm_BIN -QUIT + + wait_for_pid removed $php_fpm_PID + + if [ -n "$try" ] ; then + log_failure_msg2 + else + log_success_msg2 + fi + ;; + + status) + statusproc $php_fpm_BIN + ;; + + restart) + $0 stop + $0 start + ;; + + reload) + + log_info_msg "Reload service php-fpm..." + killproc -p $php_fpm_PID $php_fpm_BIN -USR2 + log_success_msg2 + ;; + + *) + echo "Usage: $0 {start|stop|restart|reload|status}" + exit 1 + ;; + +esac diff --git a/ayarlar/servisler/mbd/init.d/postfix b/ayarlar/servisler/mbd/init.d/postfix new file mode 100644 index 000000000..9a6a6fc26 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/postfix @@ -0,0 +1,71 @@ +#!/bin/sh +######################################################################## +# Begin postfix +# +# Description : Starts Postfix Mail Trasfer Agent +# +# Author : DJ Lucas - dj@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: postfix +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs openldap mysql postgresql saslauthd +# Required-Stop: $network +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Postfix MTA +# Description: Controls the Postfix Mail Transfer Agent +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-01-25 12:12:00 -0600 (Fri, 25 Jan 2013) $ + +BINFILE=/usr/lib/postfix/master +PIDFILE=/var/spool/postfix/pid/master.pid + +case "$1" in + start) + log_info_msg "Starting Postfix..." + start_daemon -p "${PIDFILE}" /usr/sbin/postfix start 2> /dev/null + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Postfix..." + killproc -p "${PIDFILE}" ${BINFILE} + evaluate_retval + ;; + + reload) + log_info_msg "Reloading Postfix..." + killproc -p "${PIDFILE}" ${BINFILE} -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + echo -n "postfix: " + statusproc -p "${PIDFILE}" ${BINFILE} + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/postfix diff --git a/ayarlar/servisler/mbd/init.d/postgresql b/ayarlar/servisler/mbd/init.d/postgresql new file mode 100644 index 000000000..dcd32e585 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/postgresql @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/postgresql +# +# Description : Start PostgreSQL Server +# +# Author : Ken Moffat - ken@linuxfromscratch.org +# +# Version : LFS 7.0 +# +# Notes : Based on the earlier version by Gerard Beekmans +# +######################################################################## + +### BEGIN INIT INFO +# Provides: PostgreSQL +# Required-Start: $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts PostgreSQL server. +# Description: Starts PostgreSQL server. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-05-12 11:47:06 -0500 (Sun, 12 May 2013) $ + +case "$1" in + start) + log_info_msg "Starting PostgreSQL daemon..." + + install -dm755 -o postgres -g postgres /run/postgresql + + su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \ + -l /srv/pgsql/data/logfile -o "-i" ' + evaluate_retval + ;; + + stop) + log_info_msg "Stopping PostgreSQL daemon..." + su - postgres -c "/usr/bin/pg_ctl stop -m smart -D /srv/pgsql/data" + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + su - postgres -c "/usr/bin/pg_ctl status -D /srv/pgsql/data" + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/postgresql diff --git a/ayarlar/servisler/mbd/init.d/proftpd b/ayarlar/servisler/mbd/init.d/proftpd new file mode 100644 index 000000000..1b2a545c0 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/proftpd @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/vsftpd +# +# Description : Start Pro FTP Daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: ftpd +# Required-Start: $remote_fs +# Should-Start: +# Required-Stop: $remote_fs +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts proftpd server. +# Description: Starts Professional FTP Daemon (proftpd). +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-04-21 17:07:20 -0500 (Sat, 21 Apr 2012) $ + +case "$1" in + start) + log_info_msg "Starting FTP Server..." + start_daemon /usr/sbin/proftpd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping FTP Server..." + killproc /usr/sbin/proftpd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading FTP Server..." + killproc /usr/sbin/proftpd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/proftpd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/proftpd diff --git a/ayarlar/servisler/mbd/init.d/qpopper b/ayarlar/servisler/mbd/init.d/qpopper new file mode 100644 index 000000000..e79b14e5e --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/qpopper @@ -0,0 +1,67 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/qpopper +# +# Description : Provide Post Office Protocol (POP3) services +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: qpopper +# Required-Start: $syslog $local_fs $network +# Should-Start: +# Required-Stop: $network +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts qpopper (POP3) process. +# Description: Starts qpopper (POP3) process. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-04-18 21:23:42 -0500 (Wed, 18 Apr 2012) $ + +CONFIG=/etc/mail/qpopper.conf +QPOPPER=/usr/sbin/popper +#PORT=110 + +[ -x $QPOPPER ] || exit 0 + +case "$1" in + start) + log_info_msg "Starting Qpopper daemon..." + + if [ ! -f $CONFIG ]; then + log_failure_msg2 "$CONFIG missing!" + exit 1 + fi + + start_daemon $QPOPPER $PORT -f $CONFIG + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Qpopper..." + killproc $QPOPPER + evaluate_retval + ;; + + restart) + $0 stop + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +# End /etc/init.d/qpopper diff --git a/ayarlar/servisler/mbd/init.d/random b/ayarlar/servisler/mbd/init.d/random new file mode 100644 index 000000000..f2fb495a7 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/random @@ -0,0 +1,55 @@ +#!/bin/sh +######################################################################## +# Begin random +# +# Description : Seed /dev/urandom +# +# Author : Larry Lawrence +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: random +# Required-Start: $local_fs +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Initialises /dev/urandom +# Description: Initialises /dev/urandom from a seed stored in /var/tmp. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2011-12-05 23:56:33 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Initializing kernel random number generator..." + + if [ -f /var/tmp/random-seed ]; then + /bin/cat /var/tmp/random-seed >/dev/urandom + fi + + /bin/dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null + evaluate_retval + ;; + + stop) + log_info_msg "Saving random seed..." + /bin/dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null + evaluate_retval + ;; + + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +# End /etc/init.d/random diff --git a/ayarlar/servisler/mbd/init.d/rpcbind b/ayarlar/servisler/mbd/init.d/rpcbind new file mode 100644 index 000000000..ef9ef11bc --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/rpcbind @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin rpcbind +# +# Description : Start rpcbind daemon +# +# Author : Ken Moffat - ken@linuxfromscratch.org, based on portmap +# script by Bruce Dubbs +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: rpcbind $portmap +# Required-Start: $network +# Should-Start: +# Required-Stop: $network +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts the rpcbind daemon. +# Description: Starts the rpcbind daemon to convert RPC program numbers +# into DARPA protocol port numbers. It must be running in +# order to make RPC# calls. Replaces portmap, which does +# not work with libtirpc. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: dj $ +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting rpcbind" + start_daemon /sbin/rpcbind + evaluate_retval + ;; + + stop) + log_info_msg "Stopping rpcbind" + killproc /sbin/rpcbind + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /sbin/rpcbind + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; + +esac + +# End /etc/init.d/rpcbind + diff --git a/ayarlar/servisler/mbd/init.d/rsyncd b/ayarlar/servisler/mbd/init.d/rsyncd new file mode 100644 index 000000000..7fec5852f --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/rsyncd @@ -0,0 +1,61 @@ +#!/bin/sh +####################################################################### +# Begin /etc/init.d/rsyncd +# +# Description : Start rsync server +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: rsyncd +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts rsync daemon. +# Description: Starts rsync daemon which is used to copy +# files from and to remote machines. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2012-08-28 10:06:39 -0500 (Tue, 28 Aug 2012) $ + +case "$1" in + start) + log_info_msg "Starting RSYNC Server..." + start_daemon /usr/bin/rsync --daemon + evaluate_retval + ;; + + stop) + log_info_msg "Stopping RSYNC Server..." + killproc /usr/bin/rsync + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/rsync + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/rsyncd diff --git a/ayarlar/servisler/mbd/init.d/samba b/ayarlar/servisler/mbd/init.d/samba new file mode 100644 index 000000000..479ea77b2 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/samba @@ -0,0 +1,73 @@ +#!/bin/sh +# Begin /etc/init.d/samba + +### BEGIN INIT INFO +# Provides: samba +# Required-Start: $network +# Should-Start: $remote_fs cups slapd ntpd +# Required-Stop: $network +# Should-Stop: $remote_fs cups slapd ntpd +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Provides SMB (Windows) networking. +# Description: Starts Samba smbd and nmbd processess which provide +# connectivity to SMB (Windows) networks. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: krejzi $ +#$Date: 2013-03-10 16:07:50 -0500 (Sun, 10 Mar 2013) $ + +case "$1" in + start) + mkdir -p /run/samba + + log_info_msg "Starting nmbd..." + start_daemon /usr/sbin/nmbd -D + evaluate_retval + + log_info_msg "Starting smbd..." + start_daemon /usr/sbin/smbd -D + evaluate_retval + ;; + + stop) + log_info_msg "Stopping smbd..." + killproc /usr/sbin/smbd + evaluate_retval + + log_info_msg "Stopping nmbd..." + killproc /usr/sbin/nmbd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading smbd..." + killproc /usr/sbin/smbd -HUP + evaluate_retval + + log_info_msg "Reloading nmbd..." + killproc /usr/sbin/nmbd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/nmbd + statusproc /usr/sbin/smbd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/samba diff --git a/ayarlar/servisler/mbd/init.d/saslauthd b/ayarlar/servisler/mbd/init.d/saslauthd new file mode 100644 index 000000000..ca48cd462 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/saslauthd @@ -0,0 +1,84 @@ +#!/bin/sh +######################################################################## +# Begin saslauthd +# +# Description : Cyrus SASL Boot Script +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +# Notes : Not enabled by default. +# +######################################################################## + +### BEGIN INIT INFO +# Provides: saslauthd +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: saslauthd startup script +# Description: This script starts the saslauthd daemon. It is +# configured using the file /etc/sysconfig/saslauthd. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +START="no" +AUTHMECH="" +OPTIONS="" + +if [ -f "/etc/sysconfig/saslauthd" ]; then + . /etc/sysconfig/saslauthd +fi + +case "${1}" in + start) + + if [ "$START" != "yes" ]; then + MSG="Configure saslauthd in /etc/sysconfig/saslauthd" + log_warning_msg "$MSG and set START to yes" + exit 0 + fi + + if [ -z "$AUTHMECH" ]; then + MSG="You need to select auth mechanism in" + log_warning_msg "$MSG /etc/sysconfig/saslauthd" + exit 0 + fi + + if [ ! -d /var/run/saslauthd ]; then + install -d -o root -g root -m 711 /var/run/saslauthd + fi + + log_info_msg "Starting SASL Authentication Daemon saslauthd" + start_daemon /usr/sbin/saslauthd -a $AUTHMECH $OPTIONS + evaluate_retval + ;; + + stop) + log_info_msg "Stopping SASL Authentication Daemon saslauthd" + killproc /usr/sbin/saslauthd + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc /usr/sbin/saslauthd + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; + esac +exit 0 + +# End saslauthd diff --git a/ayarlar/servisler/mbd/init.d/sddm b/ayarlar/servisler/mbd/init.d/sddm new file mode 100644 index 000000000..00f5f5460 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/sddm @@ -0,0 +1,53 @@ +#!/bin/sh +# Begin /etc/rc.d/init.d/sddm + +### BEGIN INIT INFO +# Provides: sddm +# Required-Start: $local_fs +# Should-Start: $remote_fs $syslog +# Required-Stop: $local_fs +# Should-Stop: $remote_fs $syslog +# Default-Start: 5 +# Default-Stop: 0 1 2 3 4 6 +# Short-Description: Starts sddm. +# Description: Starts sddm daemon. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +BIN_FILE="/usr/bin/sddm" + +#$LastChangedBy: fernando $ +#$Date: 2015-09-24 20:29:34 -0500 (Thu, 24 Sep 2015) $ + +case $1 in + start) + log_info_msg "Starting SDDM..." + start_daemon $BIN_FILE & + evaluate_retval + ;; + + stop) + log_info_msg "Stopping SDDM..." + killproc $BIN_FILE + evaluate_retval + ;; + + restart) + $0 stop + sleep 2 + $0 start + ;; + + status) + statusproc ${BIN_FILE} + ;; + + *) + echo "usage: $0 [start|stop|restart|status]" + exit 1 + ;; +esac + +# End /etc/rc.d/init.d/sddm diff --git a/ayarlar/servisler/mbd/init.d/sendmail b/ayarlar/servisler/mbd/init.d/sendmail new file mode 100644 index 000000000..dd2db353e --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/sendmail @@ -0,0 +1,57 @@ +#!/bin/sh +######################################################################## +# Begin sendmail +# +# Description : Starts Sendmail Mail Trasfer Agent +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: sendmail +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs openldap mysql postgresql saslauthd +# Required-Stop: $network +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Sendmail MTA +# Description: Controls the Sendmail Mail Transfer Agent +# X-LFS-Provided-By: BLFS / LFS 7.2 +### END INIT INFO + +. /lib/lsb/init-functions + +case "$1" in + start) + log_info_msg "Starting sendmail..." + start_daemon /usr/sbin/sendmail -bs -bd -q5m start + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Sendmail..." + killproc /usr/sbin/sendmail + evaluate_retval + ;; + + status) + statusproc /usr/sbin/sendmail + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|status|restart}" + exit 1 + ;; +esac + +# End /etc/init.d/sendmail diff --git a/ayarlar/servisler/mbd/init.d/slapd b/ayarlar/servisler/mbd/init.d/slapd new file mode 100644 index 000000000..028f5be8d --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/slapd @@ -0,0 +1,74 @@ +#!/bin/sh +######################################################################## +# Begin slapd +# +# Description : OpenLDAP Boot Script +# +# Authors : Armin K. +# +# Version : BLFS SVN +# +# Notes : Can be configured through /etc/sysconfig/slapd. +# +######################################################################## + +### BEGIN INIT INFO +# Provides: slapd +# Required-Start: $network $syslog +# Required-Stop: $network $syslog +# Default-Start: 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: OpenLDAP standalone server +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +SLAPD_OPTIONS="" + +if [ -f "/etc/sysconfig/slapd" ]; then + . /etc/sysconfig/slapd +fi + +case "${1}" in + start) + + if [ ! -d /var/run/openldap ]; then + install -d -o ldap -g ldap -m 755 /var/run/openldap + fi + + log_info_msg "Starting OpenLDAP" + + if [ -z "$SLAPD_SERVICES" ]; then + start_daemon /usr/sbin/slapd -u ldap -g ldap $SLAPD_OPTIONS + else + start_daemon /usr/sbin/slapd -u ldap -g ldap -h "$SLAPD_SERVICES" $SLAPD_OPTIONS + fi + evaluate_retval + ;; + + stop) + log_info_msg "Stopping OpenLDAP" + killproc /usr/sbin/slapd + evaluate_retval + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + statusproc /usr/sbin/slapd + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End slapd diff --git a/ayarlar/servisler/mbd/init.d/smartd b/ayarlar/servisler/mbd/init.d/smartd new file mode 100644 index 000000000..079010cbe --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/smartd @@ -0,0 +1,79 @@ +#! /bin/sh + +# smartmontools init file for smartd + +### BEGIN INIT INFO +# Provides: smartd +# Required-Start: $syslog $remote_fs +# Should-Start: sendmail +# Required-Stop: $syslog $remote_fs +# Should-Stop: sendmail +# Default-Start: 2 3 5 +# Default-Stop: +# Short-Description: Monitors disk and tape health via S.M.A.R.T. +# Description: Start S.M.A.R.T. disk and tape monitor. +### END INIT INFO + +source /lib/lsb/init-functions + +# Source configuration file. This should define the shell variable smartd_opts +[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools + +SMARTD_BIN=/usr/sbin/smartd +pidfile=/run/lock/smartd +config=/etc/smartd.conf + +case "$1" in + start) + log_info_msg "Starting smartd... " + + if [ ! -f $config ]; then + log_info_msg2 "configuration file $config missing" + failed=1 + + elif start_daemon $SMARTD_BIN $smartd_opts; then + touch $pidfile + + else + failed=1 + fi + + (exit $failed) + evaluate_retval + ;; + + stop) + log_info_msg "Stopping smartd... " + killproc $SMARTD_BIN + evaluate_retval + rm -f $pidfile + ;; + + report) + log_info_msg "Checking SMART devices now... " + killproc $SMARTD_BIN -USR1 + evaluate_retval + ;; + + reload) + log_info_msg "Reloading smartd daemon configuration... " + killproc $SMARTD_BIN -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc $SMARTD_BIN + ;; + + *) + echo "Usage: $0 {start|stop|report|reload|restart|status}" + exit 1 + ;; +esac + diff --git a/ayarlar/servisler/mbd/init.d/soprano b/ayarlar/servisler/mbd/init.d/soprano new file mode 100644 index 000000000..1a594c3cc --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/soprano @@ -0,0 +1,67 @@ +#!/bin/sh +######################################################################## +# Begin soprano +# +# Description : +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: sopranod +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Controls the soprano (QRDF) daemon +# Description: Controls the soprano (QRDF) daemon +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions +[ -r /etc/sysconfig/soprano ] && . /etc/sysconfig/soprano + +case "$1" in + start) + log_info_msg "Starting Soprano Server..." + HOME=$SOPRANO_STORAGE /usr/bin/sopranod \ + --storagedir $SOPRANO_STORAGE \ + --backend $SOPRANO_BACKEND \ + $SOPRANO_OPTIONS & + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Soprano Server..." + killproc /usr/bin/sopranod + evaluate_retval + ;; + + reload) + log_info_msg "Reloading Soprano Server..." + killproc /usr/bin/sopranod -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/sopranod + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/soprano diff --git a/ayarlar/servisler/mbd/init.d/sshd b/ayarlar/servisler/mbd/init.d/sshd new file mode 100644 index 000000000..b5a60be11 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/sshd @@ -0,0 +1,77 @@ +#!/bin/sh +######################################################################## +# Begin sshd +# +# Description : Start sshd daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: sshd +# Required-Start: $network +# Should-Start: +# Required-Stop: sendsignals +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts sshd daemon. +# Description: Starts sshd daemon. +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: dj $ +#$Date: 2012-06-18 18:42:28 -0500 (Mon, 18 Jun 2012) $ + +case "$1" in + start) + log_info_msg "Starting SSH Server..." + start_daemon -f /usr/sbin/sshd + evaluate_retval + # Also prevent ssh from being killed by out of memory conditions + sleep 1 + pid=`cat /run/sshd.pid 2>/dev/null` + echo "-16" >/proc/${pid}/oom_score_adj + ;; + + stop) + log_info_msg "Stopping SSH Server..." + killproc -p "/run/sshd.pid" /usr/sbin/sshd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading SSH Server..." + pid=`cat /run/sshd.pid 2>/dev/null` + + if [ -n "${pid}" ]; then + kill -HUP "${pid}" + else + (exit 1) + fi + + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/sshd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End sshd bootscript diff --git a/ayarlar/servisler/mbd/init.d/stunnel b/ayarlar/servisler/mbd/init.d/stunnel new file mode 100644 index 000000000..49e54e422 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/stunnel @@ -0,0 +1,55 @@ +#!/bin/sh +# Begin /etc/init.d/stunnel + +### BEGIN INIT INFO +# Provides: samba +# Required-Start: $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Provides an SSL encryption wrapper. +# Description: Provides an SSL encryption wrapper between remote clients and +# local (inetd-startable) or remote servers. The concept is that +# having non-SSL aware daemons running on your system you can +# easily set them up to communicate with clients over secure SSL +# channels. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2011-11-11 22:33:41 -0600 (Fri, 11 Nov 2011) $ + +case "$1" in + start) + log_info_msg "Starting the Stunnel Daemon..." + start_daemon /usr/bin/stunnel + evaluate_retval + ;; + + stop) + log_info_msg "Stopping the Stunnel Daemon..." + killproc /usr/bin/stunnel + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/stunnel + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/stunnel diff --git a/ayarlar/servisler/mbd/init.d/svn b/ayarlar/servisler/mbd/init.d/svn new file mode 100644 index 000000000..d31ec45e0 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/svn @@ -0,0 +1,60 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/svn +# +# Description : Start Subversion server +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: svn +# Required-Start: $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts subersion server. +# Description: Starts subversion version control system server daemon. +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting Subversion..." + start_daemon /usr/bin/svnserve -d -r /srv/svn/repositories + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Subversion..." + killproc /usr/bin/svnserve.orig + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/svnserve.orig + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/svn diff --git a/ayarlar/servisler/mbd/init.d/swat b/ayarlar/servisler/mbd/init.d/swat new file mode 100644 index 000000000..6f15a3d24 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/swat @@ -0,0 +1,62 @@ +#!/bin/sh +# Begin /etc/init.d/swat + +### BEGIN INIT INFO +# Provides: swat +# Required-Start: $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Provides Samba configuration tool +# Description: Starts Samba configuration tool over a secure +# tunnel; +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-04-20 21:17:24 -0500 (Fri, 20 Apr 2012) $ + +config=/etc/stunnel/swat.conf + +if [ ! -r /etc/stunnel/swat.conf ]; then + log_failure_msg "swat configuration file missing: $config" + exit 1 +fi + +# Pid coordinates with /etc/stunnel/swat.conf +pidfile=/run/stunnel-swat.pid + +case "$1" in + start) + log_info_msg "Starting swat..." + start_daemon /usr/bin/stunnel $config + evaluate_retval + ;; + + stop) + log_info_msg "Stopping swat..." + killproc -p $pidfile /usr/bin/stunnel + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc -p $pidfile /usr/bin/stunnel + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/samba diff --git a/ayarlar/servisler/mbd/init.d/sysstat b/ayarlar/servisler/mbd/init.d/sysstat new file mode 100644 index 000000000..6f7fdab8f --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/sysstat @@ -0,0 +1,45 @@ +#!/bin/sh +# Begin /etc/init.d/sysstat +######################################################################## +# Begin ntpd +# +# Description : Clear kernel counters for sysstat +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: Reset of system activity data collector file +# Required-Start: +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Reset system activity data collector file +# Description: Reset system activity data collector file +# X-LFS-Provided-By: BLFS / LFS 7.0 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-10 17:27:43 -0500 (Thu, 10 May 2012) $ + +case "$1" in + start) + log_info_msg "Calling the system activity data collector (sadc)..." + /usr/lib/sa/sadc -F -L - + evaluate_retval + ;; + + *) + echo "Usage: $0 start" + exit 1 + ;; +esac + +# End /etc/init.d/sysstat diff --git a/ayarlar/servisler/mbd/init.d/unbound b/ayarlar/servisler/mbd/init.d/unbound new file mode 100644 index 000000000..833c07f02 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/unbound @@ -0,0 +1,59 @@ +#!/bin/sh +######################################################################## +# Begin unbound +# +# Description : Unbound DNS resolver boot script +# +# Author : Igor Živković +# +# Version : BLFS SVN +# +######################################################################## + + +### BEGIN INIT INFO +# Provides: unbound +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts Unbound DNS resolver +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: igor $ +#$Date: 2013-07-21 18:16:47 -0500 (Sun, 21 Jul 2013) $ + +case "$1" in + start) + log_info_msg "Starting Unbound DNS resolver..." + unbound-anchor + start_daemon /usr/sbin/unbound + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Unbound DNS resolver..." + killproc -p "/run/unbound.pid" /usr/sbin/unbound + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/unbound + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 + ;; +esac + +# End unbound diff --git a/ayarlar/servisler/mbd/init.d/virtuoso b/ayarlar/servisler/mbd/init.d/virtuoso new file mode 100644 index 000000000..706287f69 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/virtuoso @@ -0,0 +1,69 @@ +#!/bin/sh +######################################################################## +# Begin exim +# +# Description : Starts Virtuoso Universal +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: virtuoso +# Required-Start: $syslog $local_fs $network +# Should-Start: $remote_fs +# Required-Stop: $network +# Should-Stop: $remote_fs +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Controls virtuoso data server +# Description: Controls virtuoso data server +# X-LFS-Provided-By: BLFS / LFS 7.2 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-05-10 17:27:43 -0500 (Thu, 10 May 2012) $ + +virtuoso_db="/var/lib/virtuoso/db" + +case "$1" in + start) + log_info_msg "Starting Virtuoso Universal Server..." + cd $virtuoso_db + start_daemon /usr/bin/virtuoso-t + evaluate_retval + ;; + + stop) + log_info_msg "Stopping Virtuoso Universal Server..." + killproc /usr/bin/virtuoso-t + evaluate_retval + ;; + + reload) + log_info_msg "Reloading Virtuoso Universal Server..." + killproc /usr/bin/virtuoso-t -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/bin/virtuoso-t + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/virtuoso diff --git a/ayarlar/servisler/mbd/init.d/vsftpd b/ayarlar/servisler/mbd/init.d/vsftpd new file mode 100644 index 000000000..5f4727db2 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/vsftpd @@ -0,0 +1,66 @@ +#!/bin/sh +######################################################################## +# Begin /etc/init.d/vsftpd +# +# Description : Start Very Secure FTP Daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.0 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: ftpd +# Required-Start: $remote_fs +# Should-Start: +# Required-Stop: $remote_fs +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts vsftpd server. +# Description: Starts Very Secure FTP Daemon (vsftpd). +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting vsFTPD Server..." + start_daemon /usr/sbin/vsftpd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping vsFTPD Server..." + killproc /usr/sbin/vsftpd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading vsFTPD Server..." + killproc /usr/sbin/vsftpd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/vsftpd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/vsftpd diff --git a/ayarlar/servisler/mbd/init.d/wicd b/ayarlar/servisler/mbd/init.d/wicd new file mode 100644 index 000000000..351cb4451 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/wicd @@ -0,0 +1,77 @@ +#!/bin/sh +######################################################################## +# Begin wicd +# +# Description : Wicd bootscript +# +# Authors : Ragnar Thomsen - rthomsen@linuxfromscratch.org +# +# Version : LFS 7.1 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: +# Required-Start: +# Should-Start: +# Required-Stop: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts the wicd daemon. +# Description: Starts the wicd daemon +# X-LFS-Provided-By: LFS +### END INIT INFO + +. /lib/lsb/init-functions +PIDFILE="/var/run/wicd/wicd.pid" + +case "${1}" in + start) + if [ -e $PIDFILE ]; then + echo "Wicd appears to already be running." + echo "If this is not the case, then remove" + echo "$PIDFILE and try again..." + else + log_info_msg "Starting wicd daemon..." + start_daemon /usr/sbin/wicd 1>/dev/null + evaluate_retval + fi + ;; + + stop) + log_info_msg "Stopping wicd daemon..." + if [ -e $PIDFILE ]; then + # Shut down wpa_supplicant and any started dhcp + # clients before we kill Wicd + wicd-cli -xyz 1>/dev/null + kill $(cat $PIDFILE) + evaluate_retval + else + echo "Wicd appears not to be running..." + fi + ;; + + restart) + ${0} stop + sleep 1 + ${0} start + ;; + + status) + if [ -e $PIDFILE ]; then + echo "Wicd is running with pid $(cat $PIDFILE)" + else + echo "Wicd appears not to be running..." + fi + ;; + + *) + echo "Usage: ${0} {start|stop|restart|status}" + exit 1 + ;; +esac + +exit 0 + +# End wicd \ No newline at end of file diff --git a/ayarlar/servisler/mbd/init.d/winbindd b/ayarlar/servisler/mbd/init.d/winbindd new file mode 100644 index 000000000..6b7e38040 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/winbindd @@ -0,0 +1,64 @@ +#!/bin/sh +# Begin /etc/init.d/winbindd + +### BEGIN INIT INFO +# Provides: winbindd +# Required-Start: samba +# Should-Start: +# Required-Stop: samba +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Provides Name Server Switch (NSS) capabilities to Samba. +# Description: Starts the winbindd daemon to provide +# Name Server Swithch (NSS) capabilities to Samba. +# X-LFS-Provided-By: BLFS +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: bdubbs $ +#$Date: 2012-08-26 15:15:30 -0500 (Sun, 26 Aug 2012) $ + +PIDFILE=/var/run/winbindd.pid + +case "$1" in + start) + log_info_msg "Starting winbindd..." + start_daemon /usr/sbin/winbindd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping winbindd..." + killproc -p ${PIDFILE} /usr/sbin/winbindd + evaluate_retval + + log_info_msg "Stopping nmbd..." + killproc /usr/sbin/nmbd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading smbd..." + killproc /usr/sbin/winbindd -HUP + evaluate_retval + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/winbindd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/winbindd diff --git a/ayarlar/servisler/mbd/init.d/xinetd b/ayarlar/servisler/mbd/init.d/xinetd new file mode 100644 index 000000000..4a381edb7 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/xinetd @@ -0,0 +1,67 @@ +#!/bin/sh +######################################################################## +# Begin xinetd +# +# Description : Start xinetd super server daemon +# +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS 7.2 +# +######################################################################## + +### BEGIN INIT INFO +# Provides: xinetd +# Required-Start: $network +# Should-Start: +# Required-Stop: $network +# Should-Stop: +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Starts the xinetd daemon. +# Description: Starts the xinetd super server daemon to llisten to +# specified incoming tcp and udp ports and execute +# the configured service. +# X-LFS-Provided-By: BLFS / LFS 7.2 +### END INIT INFO + +. /lib/lsb/init-functions + +#$LastChangedBy: dj $ +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $ + +case "$1" in + start) + log_info_msg "Starting xinetd..." + start_daemon /usr/sbin/xinetd + evaluate_retval + ;; + + stop) + log_info_msg "Stopping xinetd..." + killproc /usr/sbin/xinetd + evaluate_retval + ;; + + reload) + log_info_msg "Reloading xinetd..." + killproc /usr/sbin/xinetd -HUP + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + status) + statusproc /usr/sbin/xinetd + ;; + + *) + echo "Usage: $0 {start|stop|reload|restart|status}" + exit 1 + ;; +esac + +# End /etc/init.d/xinetd diff --git a/ayarlar/servisler/mbd/services/bridge b/ayarlar/servisler/mbd/services/bridge new file mode 100644 index 000000000..1750fca35 --- /dev/null +++ b/ayarlar/servisler/mbd/services/bridge @@ -0,0 +1,76 @@ +#!/bin/sh +######################################################################## +# Begin /lib/services/bridge +# +# Description : Bridge Boot Script +# +# Authors : Nathan Coulson - nathan@linuxfromscratch.org +# Bruce Dubbs - bdubbs@linuxfromscratch.org +# +# Version : LFS-7.2 +# +######################################################################## + +. /lib/lsb/init-functions +. ${IFCONFIG} + +# Make compatible with older versions of init-functions +unset is_true + +is_true() +{ + [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] || + [ "$1" = "y" ] || [ "$1" = "t" ] +} + +if [ -z "${INTERFACE_COMPONENTS}" ]; then + log_failure_msg "INTERFACE_COMPONENTS variable missing from ${IFCONFIG}" + exit 1 +fi + +case "${2}" in + up) + log_info_msg2 "\n" + log_info_msg "Creating the ${1} interface..." + brctl addbr ${1} + evaluate_retval + + for I in ${INTERFACE_COMPONENTS}; do + log_info_msg "Adding ${I} to ${1}..." + brctl addif ${1} ${I} + evaluate_retval + done + + if is_true ${STP}; then + brctl stp ${1} on + log_success_msg "Setting spanning tree protocol" + fi + + if is_true ${IP_FORWARD}; then + sysctl -w net.ipv4.ip_forward=1 > /dev/null + log_success_msg "Setting net.ipv4.ip_forward = 1" + fi + ;; + + down) + for I in ${INTERFACE_COMPONENTS}; do + log_info_msg "Removing ${I} from ${1}..." + ip link set ${I} down && + brctl delif ${1} ${I} + evaluate_retval + done + + log_info_msg "Bringing down the ${1} interface..." + ip link set ${1} down + brctl delbr ${1} + evaluate_retval + ;; + + *) + echo "Usage: ${0} [interface] {up|down}" + exit 1 + ;; +esac + +# End /lib/services/bridge + diff --git a/ayarlar/servisler/mbd/services/dhclient b/ayarlar/servisler/mbd/services/dhclient new file mode 100644 index 000000000..6c4ee48ab --- /dev/null +++ b/ayarlar/servisler/mbd/services/dhclient @@ -0,0 +1,119 @@ +#!/bin/sh +# Begin services/dhclient + +# Origianlly based upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up} +# Rewritten by Nathan Coulson +# Adapted for dhclient by DJ Lucas +# Update for LFS 7.0 by Ken Moffat + +# Call with: IFCONFIG= /lib/services/dhclient + +#$LastChangedBy: bdubbs $ +#$Date: 2014-08-27 13:01:33 -0500 (Wed, 27 Aug 2014) $ + +. /lib/lsb/init-functions +. $IFCONFIG + +PIDFILE=/run/dhclient-$1.pid +LFILE=/var/lib/dhclient/dhclient-$1.leases + +getipstats() +{ + # Print the last 16 lines of dhclient.leases + sed -e :a -e '$q;N;17,$D;ba' ${LFILE} +} + +# Make compatible with older versions of init-functions +unset is_true + +is_true() +{ + [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] || + [ "$1" = "y" ] || [ "$1" = "t" ] +} + +case "$2" in + up) + + if [ -e ${PIDFILE} ]; then + ps $(cat ${PIDFILE}) | grep dhclient >/dev/null + if [ "$?" = "0" ]; then + log_warning_msg "\n dhclient appears to be running on $1" + exit 0 + else + rm ${PIDFILE} + fi + fi + + log_info_msg "\n Starting dhclient on the $1 interface..." + + /sbin/dhclient -lf ${LFILE} -pf ${PIDFILE} $DHCP_START $1 + + if [ "$?" != "0" ]; then + log_failure_msg2 + exit 1 + fi + + # Print the assigned settings if requested + if is_true "$PRINTIP" -o is_true "$PRINTALL"; then + # Get info from dhclient.leases file + + IPADDR=`getipstats | grep "fixed-address" | \ + sed 's/ fixed-address //' | \ + sed 's/\;//'` + + NETMASK=`getipstats | grep "subnet-mask" | \ + sed 's/ option subnet-mask //' | \ + sed 's/\;//'` + + GATEWAY=`getipstats | grep "routers" | \ + sed 's/ option routers //' | \ + sed 's/\;//'` + + DNS=`getipstats | grep "domain-name-servers" | \ + sed 's/ option domain-name-servers //' | \ + sed 's/\;//' | sed 's/,/ and /'` + + if [ "$PRINTALL" = "yes" ]; then + # This is messy, the messages are on one very long + # line on the screen and in the log + log_info_msg " DHCP Assigned Settings for $1:" + log_info_msg " IP Address: $IPADDR" + log_info_msg " Subnet Mask: $NETMASK" + log_info_msg " Default Gateway: $GATEWAY" + log_info_msg " DNS Server: $DNS" + else + log_info_msg " IP Addresss:""$IPADDR" + fi + fi + + log_success_msg2 + ;; + + down) + if [ ! -e ${PIDFILE} ]; then + log_warning_msg "\n dhclient doesn't appear to be running on $1" + exit 0 + fi + + log_info_msg "\n Stopping dhclient on the $1 interface..." + + /sbin/dhclient -r -lf ${LFILE} -pf ${PIDFILE} $DHCP_STOP $1 + + if [ -e ${PIDFILE} ]; then + ps $(cat ${PIDFILE}) | grep dhclient >/dev/null + if [ "$?" != "0" ]; then + rm -f ${PIDFILE} + fi + fi + + evaluate_retval + ;; + + *) + echo "Usage: $0 [interface] {up|down}" + exit 1 + ;; +esac + +# End services/dhclient diff --git a/ayarlar/servisler/mbd/services/dhcpcd b/ayarlar/servisler/mbd/services/dhcpcd new file mode 100644 index 000000000..350537b80 --- /dev/null +++ b/ayarlar/servisler/mbd/services/dhcpcd @@ -0,0 +1,69 @@ +#!/bin/bash +# Begin services/dhcpcd + +# Origianlly dased upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up} +# Rewritten by Nathan Coulson +# Adapted for dhcpcd by DJ Lucas +# Update for LFS 7.0 by Bruce Dubbs + +# Call with: IFCONFIG= /lib/services/dhcpcd + +#$LastChangedBy: bdubbs $ +#$Date: 2012-04-09 14:48:51 -0500 (Mon, 09 Apr 2012) $ + +. /lib/lsb/init-functions +. $IFCONFIG + +pidfile="/var/run/dhcpcd-$1.pid" + +case "$2" in + up) + # Cosmetic output not needed for multiple services + if ! $(echo ${SERVICE} | grep -q " "); then + log_info_msg2 "\n" # Terminate the previous message + fi + + log_info_msg "Starting dhcpcd on the $1 interface..." + + # Test to see if there is a stale pid file + if [ -f "$pidfile" ]; then + ps `cat "$pidfile"` | grep dhcpcd > /dev/null + + if [ $? != 0 ]; then + rm -f /var/run/dhcpcd-$1.pid > /dev/null + + else + log_warning_msg "dhcpcd is already running!" + exit 2 + fi + fi + + /sbin/dhcpcd $1 $DHCP_START + evaluate_retval + ;; + + down) + log_info_msg "Stopping dhcpcd on the $1 interface..." + + if [ -z "$DHCP_STOP" ]; then + killproc -p "${pidfile}" /sbin/dhcpcd + + else + /sbin/dhcpcd $1 $DHCP_STOP &> /dev/null + + if [ "$?" -eq 1 ]; then + log_warning_msg "dhcpcd not running!" + exit 2 + fi + fi + + evaluate_retval + ;; + + *) + echo "Usage: $0 [interface] {up|down}" + exit 1 + ;; +esac + +# End services/dhcpcd diff --git a/ayarlar/servisler/mbd/services/wpa b/ayarlar/servisler/mbd/services/wpa new file mode 100644 index 000000000..695b97669 --- /dev/null +++ b/ayarlar/servisler/mbd/services/wpa @@ -0,0 +1,96 @@ +#!/bin/bash +# Begin services/wpa + +# Origianlly based upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up} +# Written by Armin K. + +# Call with: IFCONFIG= /lib/services/wpa + +#$LastChangedBy: bdubbs $ +#$Date: 2016-09-02 23:10:02 -0500 (Fri, 02 Sep 2016) $ + +. /lib/lsb/init-functions +. $IFCONFIG + +CFGFILE=/etc/sysconfig/wpa_supplicant-${IFCONFIG##*.}.conf +PIDFILE=/run/wpa_supplicant/$1.pid +CONTROL_IFACE=/run/wpa_supplicant/$1 + +case "$2" in + up) + + if [ -e ${PIDFILE} ]; then + ps $(cat ${PIDFILE}) | grep wpa_supplicant >/dev/null + if [ "$?" = "0" ]; then + log_warning_msg "\n wpa_supplicant already running on $1." + exit 0 + else + rm ${PIDFILE} + fi + fi + + if [ ! -e ${CFGFILE} ]; then + log_info_msg "\n wpa_supplicant configuration file ${CFGFILE} not present" + log_failure_msg2 + exit 1 + fi + + # Only specify -C on command line if it is not in CFGFILE + if ! grep -q ctrl_interface ${CFGFILE}; then + WPA_ARGS="-C/run/wpa_supplicant ${WPA_ARGS}" + fi + + log_info_msg "\n Starting wpa_supplicant on the $1 interface..." + + mkdir -p /run/wpa_supplicant + + /sbin/wpa_supplicant -q -B -Dnl80211,wext -P${PIDFILE} \ + -c${CFGFILE} -i$1 ${WPA_ARGS} + + if [ "$?" != "0" ]; then + log_failure_msg2 + exit 1 + fi + + log_success_msg2 + + if [ -n "${WPA_SERVICE}" ]; then + if [ ! -e /lib/services/${WPA_SERVICE} -a \ + ! -x /lib/services/${WPA_SERVICE} ]; then + log_info_msg "\n Cannot start ${WPA_SERVICE} on $1" + log_failure_msg2 + exit 1 + fi + + IFCONFIG=${IFCONFIG} /lib/services/${WPA_SERVICE} $1 up + fi + ;; + + down) + if [ -n "${WPA_SERVICE}" ]; then + if [ ! -e /lib/services/${WPA_SERVICE} -a ! -x /lib/services/${WPA_SERVICE} ]; then + log_warning_msg "\n Cannot stop ${WPA_SERVICE} on $1" + else + IFCONFIG=${IFCONFIG} /lib/services/${WPA_SERVICE} $1 down + fi + fi + + log_info_msg "\n Stopping wpa_supplicant on the $1 interface..." + + if [ -e ${PIDFILE} ]; then + kill -9 $(cat ${PIDFILE}) + rm -f ${PIDFILE} ${CONTROL_IFACE} + evaluate_retval + else + log_warning_msg "\n wpa_supplicant already stopped on $1" + exit 0 + fi + ;; + + *) + echo "Usage: $0 [interface] {up|down}" + exit 1 + ;; +esac + +# End services/wpa diff --git a/ayarlar/servisler/mbd/sysconfig/autofs.conf b/ayarlar/servisler/mbd/sysconfig/autofs.conf new file mode 100644 index 000000000..e1449e215 --- /dev/null +++ b/ayarlar/servisler/mbd/sysconfig/autofs.conf @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Autofs configuration file +# +# Filename: /etc/sysconfig/autofs.conf +# +# Author: Bryan Mason +# +# Edit History: +# +# Date Author Action +# ---------------------------------------------------------------------- +# 19 Jan 2004 B. Mason Created +# 18 Oct 2004 L. Lawrence Assume /usr is not mounted, add timeout + +automount=/sbin/automount +localoptions='' +daemonoptions='--timeout 60' +piddir=/var/run +pidroot=autofs + +# END + diff --git a/ayarlar/servisler/mbd/sysconfig/bluetooth b/ayarlar/servisler/mbd/sysconfig/bluetooth new file mode 100644 index 000000000..31e28621e --- /dev/null +++ b/ayarlar/servisler/mbd/sysconfig/bluetooth @@ -0,0 +1,11 @@ +# Begin /etc/sysconfig/bluetooth + +# A space delimied list of devices to start at boot time +ACTIVE_HCI_DEVICES_ON_BOOT="hci0" + +# A semicolon delimited list of SDP (Service Discovery Protocol) +# operations for bluetooth devices. See the sdptool for more +# details. +SDPTOOL_OPTIONS="" + +# End /etc/sysconfig/bluetooth diff --git a/ayarlar/servisler/mbd/sysconfig/dhcpd b/ayarlar/servisler/mbd/sysconfig/dhcpd new file mode 100644 index 000000000..c58555262 --- /dev/null +++ b/ayarlar/servisler/mbd/sysconfig/dhcpd @@ -0,0 +1,11 @@ +# Begin /etc/sysconfig/dhcpd + +# On which interfaces should the DHCP Server (dhcpd) serve DHCP requests? +# Separate multiple interfaces with spaces, e.g. "eth0 eth1". +INTERFACES="" + +# Additional options that you want to pass to the DHCP Server Daemon? +OPTIONS="" + +# End /etc/sysconfig/dhcpd + diff --git a/ayarlar/servisler/mbd/sysconfig/saslauthd b/ayarlar/servisler/mbd/sysconfig/saslauthd new file mode 100644 index 000000000..ea2f34ac2 --- /dev/null +++ b/ayarlar/servisler/mbd/sysconfig/saslauthd @@ -0,0 +1,32 @@ +# Begin /etc/sysconfig/saslauthd + +# Change this to "yes" and select authentification mechanism below +# to enable saslauthd + +START="no" + +# Which authentification mechanism should saslauthd use? +# +# These are some of the available options: +# kerberos5 -- use Kerberos 5 (available if you compiled saslauthd with +# MIT Kerberos5 support). +# pam -- use PAM (available if you compiled saslauthd with +# Linux PAM support). +# shadow -- use the local shadow password file +# sasldb -- use the local sasldb database file +# ldap -- use LDAP (configuration is in /etc/saslauthd.conf) +# (Available only if you compiled saslauthd with +# OpenLDAP support and with --enable-ldapdb configure switch). +# +# Alternatively, you can run /usr/sbin/pluginviewer to see which plugins +# are available. + +AUTHMECH="" + +# Add any aditional options you want to pass to saslauthd command line. +# See man 8 saslauthd for more information + +OPTIONS="" + +# End /etc/sysconfig/saslauthd + diff --git a/ayarlar/servisler/mbd/sysconfig/slapd b/ayarlar/servisler/mbd/sysconfig/slapd new file mode 100644 index 000000000..dfe30324f --- /dev/null +++ b/ayarlar/servisler/mbd/sysconfig/slapd @@ -0,0 +1,13 @@ +# Begin /etc/sysconfig/slapd + +# slapd normally serves ldap only on all TCP-ports 389. slapd can also +# service requests on TCP-port 636 (ldaps) and requests via unix +# sockets. +# Example usage: +#SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///" + +# Add any aditional options you want to pass to slapd command line. +# See man 8 slapd for more information +SLAPD_OPTIONS="" + +# End /etc/sysconfig/slapd diff --git a/bin/mps b/bin/mps index 88e8f0678..397ef76d8 100755 --- a/bin/mps +++ b/bin/mps @@ -4,7 +4,7 @@ if [ -f /etc/mps.conf ];then . /etc/mps.conf fi . /root/bin/fonks.sh -versiyon="0.9.3" +versiyon="0.9.4" iletisim="milisarge@gmail.com" paketdepo="/depo/paketler/" if [ -z ${sunucu+:} ]; then @@ -911,6 +911,28 @@ git_proje_kur(){ } +servis_kur(){ + cd /sources/milis.git/ayarlar/servisler + if make kur-$1 + then + ryaz 32 "$1 servisi kuruldu" + else + ryaz 31 "$1 servisi kurulum olumsuz!!!" + fi + cd - +} + +servis_sil(){ + cd /sources/milis.git/ayarlar/servisler + if make sil-$1 + then + ryaz 32 "$1 servisi silindi" + else + ryaz 31 "$1 servisi silme olumsuz!!!" + fi + cd - +} + paketvt_guncelle(){ temel_tarihce_kontrol wget -q --spider "$sunucu""paket.vt" @@ -1131,8 +1153,15 @@ ayarlar() { else paket_inkur_oto "$2" fi ;; + #özel git projesi kurmak için gitkur) git_proje_kur "$2" ;; + #ilgili paketin servisini kurar + serkur) + servis_kur "$2" ;; + #ilgili paketin servisini siler + sersil) + servis_sil "$2" ;; kurkos) local pkt pkt="`find $talimatname_dizin -name $2`" From 54c010de0ce0753187c1d0fa0caf2a612819b1c3 Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 18:47:44 +0300 Subject: [PATCH 30/45] lxdm.talimat --- talimatname/genel/lxdm/talimat | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/talimatname/genel/lxdm/talimat b/talimatname/genel/lxdm/talimat index aaebf8314..bde26edc2 100644 --- a/talimatname/genel/lxdm/talimat +++ b/talimatname/genel/lxdm/talimat @@ -20,12 +20,9 @@ build() { patch -Np1 < ../lxdm.in.patch patch -Np1 < ../lxdm.conf.in.patch - - + ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \ --libexecdir=/usr/lib/lxdm --localstatedir=/var --with-systemdsystemunitdir=no && - make - make make DESTDIR=$PKG install cp ../lxdm.pam $PKG/etc/pam.d/lxdm From a0a803b69698ab69f46b95950b962eed6c6f1c3d Mon Sep 17 00:00:00 2001 From: milisarge Date: Tue, 28 Mar 2017 19:35:31 +0300 Subject: [PATCH 31/45] lxdm.talimat.yenilendi --- talimatname/genel/lxdm/lxdm.kur-kos | 4 ---- talimatname/genel/lxdm/talimat | 36 +++++++++++++++-------------- 2 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 talimatname/genel/lxdm/lxdm.kur-kos diff --git a/talimatname/genel/lxdm/lxdm.kur-kos b/talimatname/genel/lxdm/lxdm.kur-kos deleted file mode 100644 index b19aaa38c..000000000 --- a/talimatname/genel/lxdm/lxdm.kur-kos +++ /dev/null @@ -1,4 +0,0 @@ -. /lib/lsb/init-functions -sed -i "s/^id:[3-5]/id:5/" /etc/inittab -echo "Init default set to 5 in the /etc/inittab file" -ln -s /etc/init.d/lxdm /etc/rc.d/rc5.d/S90lxdm diff --git a/talimatname/genel/lxdm/talimat b/talimatname/genel/lxdm/talimat index bde26edc2..77dbcaeee 100644 --- a/talimatname/genel/lxdm/talimat +++ b/talimatname/genel/lxdm/talimat @@ -1,14 +1,15 @@ -# Description: A light weight session manager for linux -# URL: http://sourceforge.net/projects/lxdm/ +# Description: hafif linux giriş yöneticisi +# URL: http://sourceforge.net/projects/lxdm/ # Packager: milisarge -# Depends on: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2 +# Depends on: iso-codes librsvg xorg-libxinerama xorg-libxrandr xorg-libxcursor xorg-libxdamage gtk2 consolekit2 mate-themes name=lxdm version=0.5.3 -release=1 -source=(http://sourceforge.net/projects/lxde/files/${name}/${name}%20${version}/${name}-${version}.tar.xz -http://downloads.sourceforge.net/project/lxdm-init-script/lxdm-init-script-0.0.1.tar.gz -http://dl.dropbox.com/u/4813005/lxdm/lxdm-themes.tar.gz +release=2 +uzun=lxdm-a548c73 + +source=(http://kaynaklar.milislinux.org/$uzun.tar.xz +https://github.com/yasarciv/lxdm-tema/archive/1.0.tar.gz lxdm.in.patch lxdm.conf.in.patch lxdm.pam @@ -16,24 +17,25 @@ Xsession) build() { - cd $name-$version + cd $uzun patch -Np1 < ../lxdm.in.patch patch -Np1 < ../lxdm.conf.in.patch - ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \ - --libexecdir=/usr/lib/lxdm --localstatedir=/var --with-systemdsystemunitdir=no && + cp ../lxdm.pam pam/lxdm + cp ../Xsession data/Xsession + + ./autogen.sh + ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc \ + --libexecdir=/usr/lib/lxdm --localstatedir=/var make make DESTDIR=$PKG install - cp ../lxdm.pam $PKG/etc/pam.d/lxdm - cp ../Xsession $PKG/etc/lxdm/ - mkdir $PKG/etc/rc.d - mkdir $PKG/etc/rc.d/init.d - install -m 755 $SRC/lxdm-init-script/lxdm $PKG/etc/rc.d/init.d/$name install -dm 755 ${PKG}/var/lib/lxdm echo 'GDK_CORE_DEVICE_EVENTS=true' > "$PKG"/var/lib/lxdm/.pam_environment - cp -r ${SRC}/lxdm-themes/* ${PKG}/usr/share/lxdm/themes - + cp -r ${SRC}/lxdm-tema-1.0/lxdm-themes/Milis-Lxdm-Tema "$PKG/usr/share/lxdm/themes" + cp ${SRC}/lxdm-tema-1.0/lxdm/lxdm.conf "$PKG/etc/lxdm/" + cd /sources/milis.git/ayarlar/servisler + make DESTDIR=$PKG kur-lxdm } From a1e7338732bbe3863a6c3e9176e971daaecb9891 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 01:00:34 +0300 Subject: [PATCH 32/45] yerellestirme --- ayarlar/servisler/mbd/init.d/lxdm | 2 ++ rootfs/lib/services/init-functions | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/ayarlar/servisler/mbd/init.d/lxdm b/ayarlar/servisler/mbd/init.d/lxdm index b707026f5..ae80ff227 100644 --- a/ayarlar/servisler/mbd/init.d/lxdm +++ b/ayarlar/servisler/mbd/init.d/lxdm @@ -23,6 +23,8 @@ BIN_FILE="/usr/sbin/lxdm" case $1 in start) + log_info_msg "Yerel ayarlar eklendi..." + yerel_ayar log_info_msg "Starting LXDM..." start_daemon $BIN_FILE -d evaluate_retval diff --git a/rootfs/lib/services/init-functions b/rootfs/lib/services/init-functions index 2918c9eca..9f674ab7b 100644 --- a/rootfs/lib/services/init-functions +++ b/rootfs/lib/services/init-functions @@ -1392,6 +1392,17 @@ klavye_ayar() loadkeys trq } ################################################################################ +# yerel_ayar() # +# # +# Description : yerel ayarlama # +# # +################################################################################ +yerel_ayar() +{ + export LC_ALL="tr_TR.UTF-8" + export LANG="tr_TR.UTF-8" +} +################################################################################ # do_start_network() # # # # Description: Start the network depending on what's available nothing, wicd # From 993bd68b9ebe3b2dfa95d163cb7275144374bc7d Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 01:04:22 +0300 Subject: [PATCH 33/45] mps.guncelleme --- bin/mps | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index 397ef76d8..bae58a91f 100755 --- a/bin/mps +++ b/bin/mps @@ -1,4 +1,4 @@ -#!/bin/bash +git#!/bin/bash . /etc/mpsd.conf if [ -f /etc/mps.conf ];then . /etc/mps.conf @@ -864,6 +864,8 @@ git_guncelle() { else cd milis.git git pull + #baslangic betiklerinin guncellenmesi + rsync -av /sources/milis.git/rootfs/lib/services/* /lib/services/ fi cd `dirname $talimatname_dizin` ryaz 33 "yerele eşitleniyor." From 022201b088cc27bdc725805bc1cf7f88493ebac5 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 01:06:21 +0300 Subject: [PATCH 34/45] mps.guncelleme --- bin/mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index bae58a91f..934b4893f 100755 --- a/bin/mps +++ b/bin/mps @@ -1,4 +1,4 @@ -git#!/bin/bash +#!/bin/bash . /etc/mpsd.conf if [ -f /etc/mps.conf ];then . /etc/mps.conf From 593df8c2ee96f081798bc7274eb4b9de52c65899 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 02:49:27 +0300 Subject: [PATCH 35/45] lxdm.guncellendi --- talimatname/genel/lxdm/talimat | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/talimatname/genel/lxdm/talimat b/talimatname/genel/lxdm/talimat index 77dbcaeee..5ef744e75 100644 --- a/talimatname/genel/lxdm/talimat +++ b/talimatname/genel/lxdm/talimat @@ -6,9 +6,9 @@ name=lxdm version=0.5.3 release=2 -uzun=lxdm-a548c73 +uisim=lxdm-a548c73 -source=(http://kaynaklar.milislinux.org/$uzun.tar.xz +source=(http://kaynaklar.milislinux.org/$uisim.tar.xz https://github.com/yasarciv/lxdm-tema/archive/1.0.tar.gz lxdm.in.patch lxdm.conf.in.patch @@ -17,17 +17,14 @@ Xsession) build() { - cd $uzun - + cd $uisim patch -Np1 < ../lxdm.in.patch patch -Np1 < ../lxdm.conf.in.patch - cp ../lxdm.pam pam/lxdm cp ../Xsession data/Xsession - - ./autogen.sh - ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc \ - --libexecdir=/usr/lib/lxdm --localstatedir=/var + ./autogen.sh + ./configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc \ + --libexecdir=/usr/lib/lxdm --localstatedir=/var make make DESTDIR=$PKG install From 5b144b3ec748a7a45d94371b4c9b59de35628e8a Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 03:06:18 +0300 Subject: [PATCH 36/45] libgcrypt.guncellendi --- talimatname/genel/libgcrypt/talimat | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/talimatname/genel/libgcrypt/talimat b/talimatname/genel/libgcrypt/talimat index b6e5ea44d..6c7efbd52 100644 --- a/talimatname/genel/libgcrypt/talimat +++ b/talimatname/genel/libgcrypt/talimat @@ -1,23 +1,23 @@ -# Description: A general purpose crypto library based on the code used in GnuPG. -# URL: http://ftp.gnupg.org/gcrypt/libgcrypt/ -# Packager: pierre at nutyx dot org -# Depends on: libgpg-error +# Description: GnuPG kod tabanlı kriptoloji kütüphanesi +# URL: http://www.gnupg.org +# Packager: milisarge +# Depends on: libgpg-error name=libgcrypt -version=1.6.5 +version=1.7.6 release=1 - -source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.bz2 ) +source=(ftp://ftp.gnupg.org/gcrypt/libgcrypt/$name-$version.tar.bz2) build() { -cd $name-$version -./configure --prefix=/usr --disable-static -make -make DESTDIR=$PKG install + cd $name-$version -rm -f $PKG/usr/share/info/dir + ./configure \ + --prefix=/usr \ + --disable-padlock-support \ + --enable-static=yes + make + make DESTDIR=$PKG install -install -v -dm755 $PKG/usr/share/doc/libgcrypt-$version -install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \ -$PKG/usr/share/doc/libgcrypt-$version + rm -rf $PKG/usr/sbin + rm -rf $PKG/usr/share/info } From f1f2ea94f7ce387207f4033c3e93e1468c8ae29e Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 03:12:59 +0300 Subject: [PATCH 37/45] libntru.paketlendi --- talimatname/genel/libntru/talimat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 talimatname/genel/libntru/talimat diff --git a/talimatname/genel/libntru/talimat b/talimatname/genel/libntru/talimat new file mode 100644 index 000000000..ec1309a81 --- /dev/null +++ b/talimatname/genel/libntru/talimat @@ -0,0 +1,16 @@ +# Description: NTRUEncrypt C de yazılmışı +# URL: https://github.com/tbuktu/libntru +# Packager: milisarge +# Depends on: + +name=libntru +version=0.4.1 +release=1 +source=(https://github.com/tbuktu/libntru/archive/${version}.tar.gz) + +build() { + cd "${SRC}/libntru-${version}" + make -f Makefile.linux + make -f Makefile.linux install DESTDIR="${PKG}" + rm -r "${PKG}/usr/share" +} From a44a40822b62c390bfab9c4a09c06b88c4b86837 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 03:21:36 +0300 Subject: [PATCH 38/45] libspoton.paketlendi --- talimatname/genel/libspoton/talimat | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 talimatname/genel/libspoton/talimat diff --git a/talimatname/genel/libspoton/talimat b/talimatname/genel/libspoton/talimat new file mode 100644 index 000000000..087f46516 --- /dev/null +++ b/talimatname/genel/libspoton/talimat @@ -0,0 +1,19 @@ +# Description: Spot-On bağlam kütüphanesi +# URL: http://spot-on.sourceforge.net/ +# Packager: milisarge +# Depends on: sqlite unzip libgcrypt libntru + +name=libspoton +version=2017.01.20 +release=1 +source=(http://downloads.sourceforge.net/project/spot-on/Version%20${version}/Spot-On-Src.d.zip?r=) + +build() { + unzip $SRC/Spot* + cd "$SRC/spot-on.d/libSpotOn" + make + install -dm755 -- "$PKG/usr/lib" + install -m755 -- libspoton.so "$PKG/usr/lib/libspoton.so" + install -dm755 -- "$PKG/usr/include" + install -m755 -- libspoton.h "$PKG/usr/include/libspoton.h" +} From 6c7cf483940624dbe871fd60c11d39d365ea1cd4 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 18:02:23 +0300 Subject: [PATCH 39/45] vokoscreen.paketlendi --- .../genel/vokoscreen/desktop_file.patch | 15 +++++++++ .../genel/vokoscreen/fix_lrelease.patch | 12 +++++++ talimatname/genel/vokoscreen/talimat | 32 +++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 talimatname/genel/vokoscreen/desktop_file.patch create mode 100644 talimatname/genel/vokoscreen/fix_lrelease.patch create mode 100644 talimatname/genel/vokoscreen/talimat diff --git a/talimatname/genel/vokoscreen/desktop_file.patch b/talimatname/genel/vokoscreen/desktop_file.patch new file mode 100644 index 000000000..88541c0c0 --- /dev/null +++ b/talimatname/genel/vokoscreen/desktop_file.patch @@ -0,0 +1,15 @@ +--- a/applications/vokoscreen.desktop 2015-05-27 12:13:34.206233690 -0500 ++++ b/applications/vokoscreen.desktop 2015-05-27 12:16:02.223851764 -0500 +@@ -1,10 +1,10 @@ + [Desktop Entry] +-Comment=screencast ++Comment=An easy to use screencast creator + Exec=vokoscreen + Icon=vokoscreen + Name=vokoscreen + StartupNotify=false + Terminal=false + Type=Application +-Categories=AudioVideo;Recorder; ++Categories=AudioVideo;Recorder;Qt; + Keywords=Audio;Video;Recorder;Screencast; diff --git a/talimatname/genel/vokoscreen/fix_lrelease.patch b/talimatname/genel/vokoscreen/fix_lrelease.patch new file mode 100644 index 000000000..462bb819c --- /dev/null +++ b/talimatname/genel/vokoscreen/fix_lrelease.patch @@ -0,0 +1,12 @@ +diff -uprNEBZ --suppress-blank-empty a/vokoscreen.pro b/vokoscreen.pro +--- a/vokoscreen.pro 2016-04-19 04:48:55.000000000 -0500 ++++ b/vokoscreen.pro 2016-04-21 15:56:08.404677703 -0500 +@@ -27,7 +27,7 @@ TRANSLATIONS = $$files(language/vokoscre + !isEmpty(TRANSLATIONS) { + isEmpty(QMAKE_LRELEASE) { + win32: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe +- else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt5 ++ else: QMAKE_LRELEASE = $$[QT_INSTALL_PREFIX]/bin/lrelease-qt5 + } + isEmpty(TS_DIR):TS_DIR = language + TSQM.name = lrelease-qt5 ${QMAKE_FILE_IN} diff --git a/talimatname/genel/vokoscreen/talimat b/talimatname/genel/vokoscreen/talimat new file mode 100644 index 000000000..2aaf7bcf1 --- /dev/null +++ b/talimatname/genel/vokoscreen/talimat @@ -0,0 +1,32 @@ +# Description: Kolay ekran çekim uygulaması +# URL: http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html +# Packager: milisarge@gmail.com +# Depends on: xorg-libxrandr v4l-utils qt5 ffmpeg lame lsof pulseaudio xdg-utils + +name=vokoscreen +_version=2.5.4-beta +version=${_version/-/.} +release=1 + +source=(https://github.com/vkohaupt/${name}/archive/${_version}.tar.gz + desktop_file.patch + fix_lrelease.patch) + +build() { + + cd "${SRC}"/${name}-${_version} + # sürüm yama + patch -Np1 < ../fix_lrelease.patch + # masaustu yama + patch -Np1 < ../desktop_file.patch + mkdir -p "${SRC}"/build + cd "${SRC}"/build + qmake-qt5 ../${name}-${_version} \ + QMAKE_CFLAGS="${CFLAGS}" \ + QMAKE_CXXFLAGS="${CXXFLAGS}" \ + CONFIG+=release \ + CONFIG+=c++14 + make + make INSTALL_ROOT="${PKG}" install + +} From 9dfab1443432857192558f596532a25fe75af24a Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 18:04:19 +0300 Subject: [PATCH 40/45] mps.guncelleme --- bin/mps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mps b/bin/mps index 934b4893f..a04536e15 100755 --- a/bin/mps +++ b/bin/mps @@ -865,7 +865,7 @@ git_guncelle() { cd milis.git git pull #baslangic betiklerinin guncellenmesi - rsync -av /sources/milis.git/rootfs/lib/services/* /lib/services/ + rsync -aviz -q --delete /sources/milis.git/rootfs/lib/services/* /lib/services/ fi cd `dirname $talimatname_dizin` ryaz 33 "yerele eşitleniyor." From c8a0cbb772c8eb970c75838e54160af293bf7baf Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 19:32:51 +0300 Subject: [PATCH 41/45] mypaint.paketlendi --- talimatname/genel/lapack/talimat | 30 +++++++++++------------ talimatname/genel/mypaint/talimat | 6 ++--- talimatname/genel/protobuf/talimat | 6 ++--- talimatname/genel/python-numpy/talimat | 4 +-- talimatname/genel/python-protobuf/talimat | 6 ++--- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/talimatname/genel/lapack/talimat b/talimatname/genel/lapack/talimat index bb0587dee..41fefcef3 100644 --- a/talimatname/genel/lapack/talimat +++ b/talimatname/genel/lapack/talimat @@ -1,25 +1,25 @@ -# Description: Basic Linear Algebra Subprograms +# Description: temel lineer cebir altprogramları # URL: http://www.netlib.org/blas -# Packager: pierre at nutyx dot org +# Packager: milisarge # Depends on: cmake name=lapack version=3.5.0 -release=2 +release=1 source=(http://www.netlib.org/$name/$name-$version.tgz ) build() { -cd $name-$version -mkdir build -cd build -cmake .. \ --DCMAKE_BUILD_TYPE=Release \ --DCMAKE_SKIP_RPATH=ON \ --DBUILD_SHARED_LIBS=ON \ --DCMAKE_INSTALL_PREFIX=/usr \ --DCMAKE_Fortran_COMPILER=gfortran \ --DLAPACKE=ON -make -make DESTDIR=$PKG install + cd $name-$version + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_Fortran_COMPILER=gfortran \ + -DLAPACKE=ON + make + make DESTDIR=$PKG install } diff --git a/talimatname/genel/mypaint/talimat b/talimatname/genel/mypaint/talimat index 917075d3b..91776c88a 100644 --- a/talimatname/genel/mypaint/talimat +++ b/talimatname/genel/mypaint/talimat @@ -1,11 +1,11 @@ -# Description: A fast and easy painting application for digital painters, with brush dynamics +# Description: hızlı ve kolay boyama uygulaması # URL: http://mypaint.intilinux.com/ -# Packagers: pierre at nutyx dot org +# Packagers: milisarge # Depends on: lcms2 json-c python-gtk python-numpy python-protobuf scons swig name=mypaint version=1.1.0 -release=2 +release=1 source=(http://download.gna.org/$name/$name-$version.tar.xz) build () diff --git a/talimatname/genel/protobuf/talimat b/talimatname/genel/protobuf/talimat index d5d7cf0c9..256a3b72b 100644 --- a/talimatname/genel/protobuf/talimat +++ b/talimatname/genel/protobuf/talimat @@ -1,11 +1,11 @@ -# Description: Google's data interchange format utility (python API). +# Description: Google veri değişim biçim aracı # URL: http://code.google.com/p/protobuf/ -# Packager: pierre at nutyx dot org +# Packager: milisarge # Depends on: python-setuptools name=protobuf version=2.6.1 -release=2 +release=1 source=(https://github.com/google/protobuf/releases/download/v$version/protobuf-$version.tar.bz2) build () diff --git a/talimatname/genel/python-numpy/talimat b/talimatname/genel/python-numpy/talimat index 4a360552e..3801d4cf1 100644 --- a/talimatname/genel/python-numpy/talimat +++ b/talimatname/genel/python-numpy/talimat @@ -1,6 +1,6 @@ -# Description: Scientific tools for Python +# Description: python bilimsel araç kütüphanesi # URL: http://numpy.scipy.org/ -# Packager: pierre at nutyx dot org +# Packager: milisarge # Depends on: python lapack name=python-numpy diff --git a/talimatname/genel/python-protobuf/talimat b/talimatname/genel/python-protobuf/talimat index ce9048270..17fbf9310 100644 --- a/talimatname/genel/python-protobuf/talimat +++ b/talimatname/genel/python-protobuf/talimat @@ -1,6 +1,6 @@ -# Description: Google's data interchange format utility (python API). +# Description: Google veri değişim biçim aracının python api'si # URL: http://code.google.com/p/protobuf/ -# Packager: - pierre at nutyx dot org +# Packager: milisarge # Depends on: protobuf python-setuptools _name=protobuf @@ -14,5 +14,5 @@ source=(https://github.com/google/protobuf/releases/download/$version/protobuf-$ build () { cd ${_name}-$version/python -python2 setup.py install --prefix=/usr --root $PKG +python2 setup.py install --prefix=/usr --root=$PKG } From e2ed17e0bf890bab8a229ed135d4a9e7e737c38c Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 21:15:41 +0300 Subject: [PATCH 42/45] mypaint.paketlendi --- talimatname/genel/mypaint/talimat | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/talimatname/genel/mypaint/talimat b/talimatname/genel/mypaint/talimat index 91776c88a..e234e80fb 100644 --- a/talimatname/genel/mypaint/talimat +++ b/talimatname/genel/mypaint/talimat @@ -1,17 +1,22 @@ # Description: hızlı ve kolay boyama uygulaması # URL: http://mypaint.intilinux.com/ # Packagers: milisarge -# Depends on: lcms2 json-c python-gtk python-numpy python-protobuf scons swig +# Depends on: desktop-file-utils gtk3 gegl babl lcms2 json-c python-cairo python-gobject python-gtk python-numpy python-protobuf scons swig libmypaint name=mypaint -version=1.1.0 +version=1.2.1 release=1 -source=(http://download.gna.org/$name/$name-$version.tar.xz) +source=() build () { -cd $name-$version -sed -i "s|'json|'json-c|" brushlib/SConscript -scons -scons prefix=$PKG/usr mandir=$PKG/usr/share/man install + if [ -d $DERLEME_KAYNAKDIZIN/$name ];then + cd $DERLEME_KAYNAKDIZIN/$name + git pull + else + git clone https://github.com/mypaint/mypaint.git $DERLEME_KAYNAKDIZIN/$name + fi + cd $DERLEME_KAYNAKDIZIN/$name + scons prefix="/usr" enable_gegl=true use_sharedlib=yes + scons prefix="/usr" enable_gegl=true use_sharedlib=yes --install-sandbox="$PKG" "$PKG" } From b76dbd70501d47272e34faacf2573ca51e528840 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 22:27:23 +0300 Subject: [PATCH 43/45] libmypaint.paketlendi --- talimatname/genel/libmypaint/talimat | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 talimatname/genel/libmypaint/talimat diff --git a/talimatname/genel/libmypaint/talimat b/talimatname/genel/libmypaint/talimat new file mode 100644 index 000000000..55269278a --- /dev/null +++ b/talimatname/genel/libmypaint/talimat @@ -0,0 +1,19 @@ +# Description: hızlı ve kolay boyama uygulaması +# URL: http://mypaint.intilinux.com/ +# Packagers: milisarge +# Depends on: gobject-introspection json-c gegl intltool python + +name=libmypaint +version=1.3.0 +release=1 + +source=(https://github.com/mypaint/libmypaint/archive/v$version.tar.gz) + +build () +{ + cd ${name}-$version + ./autogen.sh + ./configure --prefix=/usr --enable-gegl + make + make DESTDIR="$PKG" install +} From 760e9f755b33e61c9c607f7f573643dafff22988 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 22:28:12 +0300 Subject: [PATCH 44/45] gegl.guncellendi --- talimatname/genel/gegl/talimat | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/talimatname/genel/gegl/talimat b/talimatname/genel/gegl/talimat index 97f7b171d..f9a919725 100644 --- a/talimatname/genel/gegl/talimat +++ b/talimatname/genel/gegl/talimat @@ -1,24 +1,20 @@ # Description: Genel Grafik Kitaplığı # URL: http://gegl.org/ # Packager: milisarge -# Depends on: babl gtk2 librsvg libpng ruby lua ffmpeg librsvg openexr exiv2 +# Depends on: babl gtk2 librsvg libpng ruby lua ffmpeg librsvg openexr exiv2 json-glib name=gegl -version=0.2.0 +version=0.3.8 release=1 -source=(http://ftp.gimp.org/pub/$name/0.2/$name-$version.tar.bz2 - http://www.linuxfromscratch.org/patches/blfs/svn/gegl-0.2.0-ffmpeg2-1.patch - ) +source=(https://download.gimp.org/pub/gegl/0.3/$name-$version.tar.bz2) build() { cd $name-$version -patch -Np1 -i ../gegl-0.2.0-ffmpeg2-1.patch ./configure --prefix=/usr --disable-docs -LC_ALL=en_US make +LC_ALL=tr_TR.UTF-8 +make make DESTDIR=$PKG install install -d -v -m755 $PKG/usr/share/gtk-doc/html/gegl/images -install -v -m644 docs/*.{css,html} \ -$PKG/usr/share/gtk-doc/html/gegl install -v -m644 docs/images/* \ $PKG/usr/share/gtk-doc/html/gegl/images } From 403f3f5f6a4f5fa6a01b74031a6abddbbf873ca5 Mon Sep 17 00:00:00 2001 From: milisarge Date: Wed, 29 Mar 2017 22:34:09 +0300 Subject: [PATCH 45/45] mypaint.paketlendi --- talimatname/genel/mypaint/talimat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talimatname/genel/mypaint/talimat b/talimatname/genel/mypaint/talimat index e234e80fb..49304e166 100644 --- a/talimatname/genel/mypaint/talimat +++ b/talimatname/genel/mypaint/talimat @@ -4,7 +4,7 @@ # Depends on: desktop-file-utils gtk3 gegl babl lcms2 json-c python-cairo python-gobject python-gtk python-numpy python-protobuf scons swig libmypaint name=mypaint -version=1.2.1 +version=1.3.0 release=1 source=()