From 19a6ade70df9a5f3a71f9ef40bce38c10fa66a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Erata?= Date: Thu, 30 Jul 2015 15:34:30 +0300 Subject: [PATCH] road to kio-extras, libmtp,samba,libss added. --- network/misc/libssh/actions.py | 32 ++ network/misc/libssh/pspec.xml | 101 ++++++ network/misc/libssh/translations.xml | 13 + programming/debug/component.xml | 3 + programming/debug/gdb/actions.py | 44 +++ programming/debug/gdb/files/gstack.1 | 48 +++ programming/debug/gdb/pspec.xml | 102 ++++++ programming/debug/gdb/translations.xml | 16 + programming/misc/iniparser/actions.py | 22 ++ .../misc/iniparser/files/makefile.patch | 22 ++ programming/misc/iniparser/pspec.xml | 64 ++++ programming/misc/iniparser/translations.xml | 13 + programming/misc/libtevent/actions.py | 30 ++ programming/misc/libtevent/pspec.xml | 93 +++++ programming/misc/libtevent/translations.xml | 13 + server/samba/actions.py | 60 ++++ server/samba/comar/package.py | 15 + server/samba/comar/service.py | 49 +++ server/samba/files/fedora/pam_winbind.conf | 38 +++ server/samba/files/fedora/samba.log | 7 + server/samba/files/fedora/samba.pamd | 6 + server/samba/files/fedora/samba.xinetd | 15 + server/samba/files/fedora/smb.conf.default | 320 ++++++++++++++++++ server/samba/files/fedora/swat.desktop | 10 + server/samba/files/lmhosts | 1 + server/samba/files/samba.confd | 2 + server/samba/files/samba.logrotate | 9 + server/samba/files/samba.pam | 5 + server/samba/files/smb.conf | 63 ++++ server/samba/files/smbusers | 3 + server/samba/files/system-auth-winbind | 17 + server/samba/files/tmpfiles.conf | 1 + server/samba/pspec.xml | 218 ++++++++++++ server/samba/translations.xml | 13 + 34 files changed, 1468 insertions(+) create mode 100644 network/misc/libssh/actions.py create mode 100644 network/misc/libssh/pspec.xml create mode 100644 network/misc/libssh/translations.xml create mode 100644 programming/debug/component.xml create mode 100644 programming/debug/gdb/actions.py create mode 100644 programming/debug/gdb/files/gstack.1 create mode 100644 programming/debug/gdb/pspec.xml create mode 100644 programming/debug/gdb/translations.xml create mode 100644 programming/misc/iniparser/actions.py create mode 100644 programming/misc/iniparser/files/makefile.patch create mode 100644 programming/misc/iniparser/pspec.xml create mode 100644 programming/misc/iniparser/translations.xml create mode 100644 programming/misc/libtevent/actions.py create mode 100644 programming/misc/libtevent/pspec.xml create mode 100644 programming/misc/libtevent/translations.xml create mode 100644 server/samba/actions.py create mode 100644 server/samba/comar/package.py create mode 100644 server/samba/comar/service.py create mode 100644 server/samba/files/fedora/pam_winbind.conf create mode 100644 server/samba/files/fedora/samba.log create mode 100644 server/samba/files/fedora/samba.pamd create mode 100644 server/samba/files/fedora/samba.xinetd create mode 100644 server/samba/files/fedora/smb.conf.default create mode 100644 server/samba/files/fedora/swat.desktop create mode 100644 server/samba/files/lmhosts create mode 100644 server/samba/files/samba.confd create mode 100644 server/samba/files/samba.logrotate create mode 100644 server/samba/files/samba.pam create mode 100644 server/samba/files/smb.conf create mode 100644 server/samba/files/smbusers create mode 100644 server/samba/files/system-auth-winbind create mode 100644 server/samba/files/tmpfiles.conf create mode 100644 server/samba/pspec.xml create mode 100644 server/samba/translations.xml diff --git a/network/misc/libssh/actions.py b/network/misc/libssh/actions.py new file mode 100644 index 0000000000..6c358263d6 --- /dev/null +++ b/network/misc/libssh/actions.py @@ -0,0 +1,32 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/copyleft/gpl.txt + +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + + +def setup(): + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ + -DWITH_GSSAPI=OFF", sourceDir="..") + +def build(): + shelltools.cd("build") + cmaketools.make() + #cmaketools.make("doc") + +def install(): + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + #pisitools.doman("doc/man/*/*") + pisitools.dohtml("doc/*") + + shelltools.cd("..") + pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "INSTALL", "README") diff --git a/network/misc/libssh/pspec.xml b/network/misc/libssh/pspec.xml new file mode 100644 index 0000000000..855c6b308a --- /dev/null +++ b/network/misc/libssh/pspec.xml @@ -0,0 +1,101 @@ + + + + + libssh + http://www.libssh.org + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + Full C library functions for manipulating a client-side SSH connection + libssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl). + https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.6.4.tar.gz + + zlib-devel + openssl-devel + graphviz + doxygen + + + + + libssh + + zlib + openssl + + + /usr/lib + /usr/share/doc + + + + + libssh-devel + Development files for libssh + + libssh + + + /usr/include + /usr/lib/pkgconfig + + + + + libssh-docs + Development documentation for libssh + + /usr/share/doc/libssh/html + /usr/share/man + + + + + + 2014-07-30 + 0.6.4 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-05-08 + 0.6.3 + Version bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-03-09 + 5.4 + Rebuild. + Kamil Atlı + suvarice@gmail.com + + + 2013-07-27 + 5.4 + Move pc files to devel pack, rebuild + PisiLinux Community + admins@pisilinux.org + + + 2013-05-04 + 5.4 + V.Bump + PisiLinux Community + admins@pisilinux.org + + + 2012-09-01 + 0.5.2 + First release + PisiLinux Community + admins@pisilinux.org + + + \ No newline at end of file diff --git a/network/misc/libssh/translations.xml b/network/misc/libssh/translations.xml new file mode 100644 index 0000000000..55fea85eaf --- /dev/null +++ b/network/misc/libssh/translations.xml @@ -0,0 +1,13 @@ + + + + libssh + SSH bağlantılarının kontrol edilebilmesini sağlayan C kitaplığı + libssh, yazılımlarında SSH kullanmak isteyen programcılar için tasarlanmış bir C kitaplığıdır. SSH istemcisi programcı tarafından tam olarak kontrol edilebilir, uzaktan yazılım çalıştırma, tünel yaratma, dosya transferi ve uzak dosya erişimi işlemleri yapılabilir. Tüm bunlar için openssl paketinde bulunan lıbcrypto'nun sistemde bulunması yeterlidir. + + + + libssh-devel + libssh için geliştirme dosyaları + + diff --git a/programming/debug/component.xml b/programming/debug/component.xml new file mode 100644 index 0000000000..9ab4911614 --- /dev/null +++ b/programming/debug/component.xml @@ -0,0 +1,3 @@ + + programming.debug + diff --git a/programming/debug/gdb/actions.py b/programming/debug/gdb/actions.py new file mode 100644 index 0000000000..614ee56b6f --- /dev/null +++ b/programming/debug/gdb/actions.py @@ -0,0 +1,44 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + pisitools.dosed("config/override.m4", "2.64", "2.69") + shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure') + autotools.autoreconf("-vfi") + autotools.configure("--with-system-readline \ + --with-separate-debug-dir=/usr/lib/debug \ + --with-gdb-datadir=/usr/share/gdb \ + --with-pythondir=/usr/lib/%s/site-packages \ + --disable-nls \ + --disable-rpath \ + --with-python \ + --with-expat" % get.curPYTHON()) + + +def build(): + autotools.make() + +def install(): + autotools.rawInstall('DESTDIR="%s"' % get.installDIR()) + + for libdel in ["libbfd.a","libopcodes.a"]: + pisitools.remove("/usr/lib/%s" % libdel) + + # these are not necessary + #for info in ["bfd","configure","standards"]: + #pisitools.remove("/usr/share/info/%s.info" % info) + + pisitools.remove("/usr/share/info/bfd.info") + + for hea in ["ansidecl","symcat","dis-asm", "bfd", "bfdlink", "plugin-api"]: + pisitools.remove("/usr/include/%s.h" % hea) + + pisitools.dodoc("README*", "MAINTAINERS", "COPYING*", "ChangeLog*") \ No newline at end of file diff --git a/programming/debug/gdb/files/gstack.1 b/programming/debug/gdb/files/gstack.1 new file mode 100644 index 0000000000..1f4e406be2 --- /dev/null +++ b/programming/debug/gdb/files/gstack.1 @@ -0,0 +1,48 @@ +.\" +.\" gstack manual page. +.\" Copyright (c) 1999 Ross Thompson +.\" Copyright (c) 2001, 2002, 2004, 2008 Red Hat, Inc. +.\" +.\" Original author: Ross Thompson +.\" +.\" This program 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, or (at your option) +.\" any later version. +.\" +.\" This program 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; see the file COPYING. If not, write to +.\" the Free Software Foundation, 59 Temple Place - Suite 330, +.\" Boston, MA 02111-1307, USA. +.\" +.TH GSTACK 1 "Feb 15 2008" "Red Hat Linux" "Linux Programmer's Manual" + +.SH NAME +gstack \- print a stack trace of a running process + +.SH SYNOPSIS +.B gstack +pid + +.SH DESCRIPTION + +\f3gstack\f1 attaches to the active process named by the \f3pid\f1 on +the command line, and prints out an execution stack trace. If ELF +symbols exist in the binary (usually the case unless you have run +strip(1)), then symbolic addresses are printed as well. + +If the process is part of a thread group, then \f3gstack\f1 will print +out a stack trace for each of the threads in the group. + +.SH SEE ALSO +nm(1), ptrace(2), gdb(1) + +.SH AUTHORS +Ross Thompson + +Red Hat, Inc. diff --git a/programming/debug/gdb/pspec.xml b/programming/debug/gdb/pspec.xml new file mode 100644 index 0000000000..a67bfaca71 --- /dev/null +++ b/programming/debug/gdb/pspec.xml @@ -0,0 +1,102 @@ + + + + + gdb + http://www.gnu.org/software/gdb/gdb.html + + PisiLinux Community + admins@pisilinux.org + + GPLv3 + app:console + GNU debugger + GDB, the GNU Project debugger, allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed. + mirrors://gnu/gdb/gdb-7.9.1.tar.xz + + texinfo + expat-devel + python-devel + readline-devel + ncurses-devel + + + + + gdb + + guile + expat + python + readline + ncurses + + + /usr/bin + /usr/lib + /usr/share/doc/gdb + /usr/share/gdb + /usr/share/info + /usr/share/man + + + gstack.1 + + + + + gdb-devel + Development files for gdb + + gdb + + + /usr/include + + + + + + 2015-07-30 + 7.9.1 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-02-22 + 7.9 + Version bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2014-05-20 + 7.7.1 + Version bump. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-02-19 + 7.7 + Version bump. + PisiLinux Community + admins@pisilinux.org + + + 2014-01-25 + 7.6 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2012-09-23 + 7.5 + First release + PisiLinux Community + admins@pisilinux.org + + + diff --git a/programming/debug/gdb/translations.xml b/programming/debug/gdb/translations.xml new file mode 100644 index 0000000000..2166142c83 --- /dev/null +++ b/programming/debug/gdb/translations.xml @@ -0,0 +1,16 @@ + + + + gdb + GDB, GNU Proje hata ayıklama aracı, çalışır durumdaki başka bir programın `içinde' olan biteni görmenizi, veya başka bir programın çöktüğü anda ne yapıyor olduğunu bilmenizi sağlar. + GNU hata ayıklayıcısı + Depurador GNU + GDB, el depurador del proyecto GNU permite ver lo que está pasando 'en el interior de' otro programa mientras ejecuta -- o lo que estaba haciendo cuando quedó colgado. + + + + gdb-devel + gdb için geliştirme dosyaları + Development files for gdb + + \ No newline at end of file diff --git a/programming/misc/iniparser/actions.py b/programming/misc/iniparser/actions.py new file mode 100644 index 0000000000..0fa4cdf0ec --- /dev/null +++ b/programming/misc/iniparser/actions.py @@ -0,0 +1,22 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + +def build(): + autotools.make("CC=%s CFLAGS='%s -fPIC' LDFLAGS='%s'" % (get.CC(), get.CFLAGS(), get.LDFLAGS())) + +def install(): + pisitools.dolib_so("libiniparser.so.0") + pisitools.dosym("libiniparser.so.0", "/usr/lib/libiniparser.so") + + pisitools.dodir("/usr/include") + pisitools.insinto("/usr/include", "src/*.h") + + pisitools.dodoc("README", "AUTHORS", "LICENSE") diff --git a/programming/misc/iniparser/files/makefile.patch b/programming/misc/iniparser/files/makefile.patch new file mode 100644 index 0000000000..01fb768c1f --- /dev/null +++ b/programming/misc/iniparser/files/makefile.patch @@ -0,0 +1,22 @@ +--- a/Makefile 2009-03-19 12:19:57.000000000 +0200 ++++ b/Makefile 2009-03-19 12:21:08.000000000 +0200 +@@ -3,8 +3,8 @@ + # + + # Compiler settings +-CC = gcc +-CFLAGS = -O2 -fPIC -Wall -ansi -pedantic ++CC = ${CC} ++CFLAGS = ${CFLAGS} + + # Ar settings to build the library + AR = ar +@@ -12,7 +12,7 @@ + + SHLD = ${CC} ${CFLAGS} + LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib +-LDFLAGS = -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib ++LDFLAGS = ${LDFLAGS} + + # Set RANLIB to ranlib on systems that require it (Sun OS < 4, Mac OSX) + # RANLIB = ranlib diff --git a/programming/misc/iniparser/pspec.xml b/programming/misc/iniparser/pspec.xml new file mode 100644 index 0000000000..233acd1308 --- /dev/null +++ b/programming/misc/iniparser/pspec.xml @@ -0,0 +1,64 @@ + + + + + iniparser + http://ndevilla.free.fr/iniparser/ + + PisiLinux Community + admins@pisilinux.org + + MIT + library + app:console + A free ini file parsing library + iniparser is a free stand-alone ini file parsing library written in portable ANSI C. + http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz + + makefile.patch + + + + + iniparser + + /usr/share/doc + /usr/lib + + + + + iniparser-devel + Development files for iniparser + + iniparser + + + /usr/include + + + + + + 2013-05-22 + 3.1 + rebuild. + Kamil Atlı + suvarice@gmail.com + + + 2013-04-30 + 3.1 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2009-03-19 + 3.1 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/programming/misc/iniparser/translations.xml b/programming/misc/iniparser/translations.xml new file mode 100644 index 0000000000..43a2d4bba0 --- /dev/null +++ b/programming/misc/iniparser/translations.xml @@ -0,0 +1,13 @@ + + + + iniparser + Bir ini dosyası ayrıştırma kitaplığı + iniparser, ücretsiz ve ANSI C ile taşınabilir bir şekilde yazılmış INI dosyası ayrıştırma kitaplığıdır. + + + + iniparser-devel + iniparser için geliştirme dosyaları + + diff --git a/programming/misc/libtevent/actions.py b/programming/misc/libtevent/actions.py new file mode 100644 index 0000000000..8d86f14112 --- /dev/null +++ b/programming/misc/libtevent/actions.py @@ -0,0 +1,30 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools + +jobs = get.makeJOBS().replace("-j", "") + +def setup(): + autotools.configure("\ + --builtin-libraries=replace \ + --bundled-libraries=NONE \ + --disable-rpath \ + ") + +def build(): + autotools.make("JOBS=%s" % jobs) + +def install(): + autotools.rawInstall("DESTDIR=%s JOBS=%s" % (get.installDIR(), jobs)) + +# pisitools.remove("/usr/lib/*.a") + + # Create symlinks for so file +# pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so.%s" % get.srcVERSION().split(".")[0]) +# pisitools.dosym("libtevent.so.%s" % get.srcVERSION(), "/usr/lib/libtevent.so") diff --git a/programming/misc/libtevent/pspec.xml b/programming/misc/libtevent/pspec.xml new file mode 100644 index 0000000000..5cd5bcb2bd --- /dev/null +++ b/programming/misc/libtevent/pspec.xml @@ -0,0 +1,93 @@ + + + + + libtevent + http://tevent.samba.org + + PisiLinux Community + admins@pisilinux.org + + LGPLv3+ + library + Event system based on the talloc memory management library + libtevent is an event system based on the talloc memory management library. It is the core event system used in Samba. Tevent has support for many event types, including timers, signals, and the classic file descriptor events. + http://samba.org/ftp/tevent/tevent-0.9.21.tar.gz + + python-devel + gdb-devel + libtalloc-devel + libxslt + docbook-xsl + + + + + libtevent + + libtalloc + python + + + /usr/lib + + + + + libtevent-devel + Development files for libtevent + + libtevent + libtalloc-devel + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-05-22 + 0.9.21 + Rebuild. + Kamil Atlı + suvarice@gmail.com + + + 2014-04-23 + 0.9.21 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2014-03-09 + 0.9.18 + Rebuild. + Kamil Atlı + suvarice@gmail.com + + + 2013-08-17 + 0.9.18 + Dep Fixed + PisiLinux Community + admins@pisilinux.org + + + 2013-07-07 + 0.9.18 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2010-10-26 + 0.9.8 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/programming/misc/libtevent/translations.xml b/programming/misc/libtevent/translations.xml new file mode 100644 index 0000000000..9eba6232a5 --- /dev/null +++ b/programming/misc/libtevent/translations.xml @@ -0,0 +1,13 @@ + + + + libtevent + talloc bellek yönetim kitaplığına dayanan olay sistemi kitaplığı + libtevent Samba uygulamasının en temel olay sistem kitaplığıdır. Zamanlayıcı, dosya tanımlayıcı gibi çeşitli olay türlerini desteklemektedir. + + + + libtevent-devel + libtevent için geliştirme dosyaları + + diff --git a/server/samba/actions.py b/server/samba/actions.py new file mode 100644 index 0000000000..2cf450c12e --- /dev/null +++ b/server/samba/actions.py @@ -0,0 +1,60 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +shelltools.export("JOBS", get.makeJOBS().replace("-j", "")) + +MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,\ +pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,\ +auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" + + +def setup(): + pisitools.flags.add("-D_FILE_OFFSET_BITS=64", "-D_GNU_SOURCE", "-DLDAP_DEPRECATED", "-fPIC") + + autotools.configure("\ + --libdir=/usr/lib \ + --with-cachedir=/var/lib/samba \ + --with-configdir=/etc/samba \ + --with-lockdir=/var/lib/samba \ + --with-logfilebase=/var/log/samba \ + --with-modulesdir=/usr/lib/samba \ + --with-pammodulesdir=/lib/security \ + --with-piddir=/run/samba \ + --with-privatedir=/var/lib/samba/private \ + --with-sockets-dir=/run/samba \ + --disable-rpath \ + --disable-rpath-install \ + --enable-fhs \ + --enable-gnutls \ + --nopyc \ + --nopyo \ + --with-acl-support \ + --with-ads \ + --with-automount \ + --with-cluster-support \ + --with-dnsupdate \ + --with-dnsupdate \ + --with-pam \ + --with-pam_smbpass \ + --with-quotas \ + --with-sendfile-support \ + --with-shared-modules=%s \ + --with-syslog \ + --with-utmp \ + --with-winbind \ + " % MODULES) + +def build(): + shelltools.system("make") + +def install(): + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + pisitools.dosym("samba-4.0/libsmbclient.h", "/usr/include/libsmbclient.h") diff --git a/server/samba/comar/package.py b/server/samba/comar/package.py new file mode 100644 index 0000000000..1fc9601751 --- /dev/null +++ b/server/samba/comar/package.py @@ -0,0 +1,15 @@ +#/usr/bin/python + +import os + +def postInstall(fromVersion, fromRelease, toVersion, toRelease): + if not os.path.exists("/home/samba"): + os.system("/bin/mkdir /home/samba") + os.system("/bin/chmod 0777 /home/samba") + + # needed by non-root sharing support. + os.system("/bin/mkdir /var/lib/samba/usershares") + os.system("/bin/chgrp users /var/lib/samba/usershares") + os.system("/bin/chmod 1770 /var/lib/samba/usershares") + + os.system("/bin/chmod 0750 /var/lib/samba/winbindd_privileged") diff --git a/server/samba/comar/service.py b/server/samba/comar/service.py new file mode 100644 index 0000000000..938ff42c70 --- /dev/null +++ b/server/samba/comar/service.py @@ -0,0 +1,49 @@ +from comar.service import * +import os + +serviceType = "server" +serviceDesc = _({"en": "SMB Network Sharing", + "tr": "SMB Ağ Paylaşımı"}) + +WINBINDD_PIDFILE = "/run/samba/winbindd.pid" +NMBD_PIDFILE = "/run/samba/nmbd.pid" +SMBD_PIDFILE = "/run/samba/smbd.pid" + + +@synchronized +def start(): + startService(command="/usr/sbin/smbd", + args="-D", + donotify=True) + + startService(command="/usr/sbin/nmbd", + args="-D") + + if config.get("winbind", "no") == "yes": + startService(command="/usr/sbin/winbindd", + args="-D") + +@synchronized +def stop(): + stopService(pidfile=WINBINDD_PIDFILE, + donotify=True) + stopService(pidfile=NMBD_PIDFILE, + donotify=True) + stopService(pidfile=SMBD_PIDFILE, + donotify=True) + +def reload(): + if os.path.exists(WINBINDD_PIDFILE): + os.kill(int(file(WINBINDD_PIDFILE).read().strip()), signal.SIGHUP) + + if os.path.exists(NMBD_PIDFILE): + os.kill(int(file(NMBD_PIDFILE).read().strip()), signal.SIGHUP) + + if os.path.exists(SMBD_PIDFILE): + os.kill(int(file(SMBD_PIDFILE).read().strip()), signal.SIGHUP) + +def status(): + result = isServiceRunning(SMBD_PIDFILE) and isServiceRunning(NMBD_PIDFILE) + if config.get("winbind", "no") == "yes": + result = result and isServiceRunning(WINBINDD_PIDFILE) + return result diff --git a/server/samba/files/fedora/pam_winbind.conf b/server/samba/files/fedora/pam_winbind.conf new file mode 100644 index 0000000000..dd0b112f30 --- /dev/null +++ b/server/samba/files/fedora/pam_winbind.conf @@ -0,0 +1,38 @@ +# +# pam_winbind configuration file +# +# /etc/security/pam_winbind.conf +# + +[global] + +# turn on debugging +;debug = no + +# turn on extended PAM state debugging +;debug_state = no + +# request a cached login if possible +# (needs "winbind offline logon = yes" in smb.conf) +;cached_login = no + +# authenticate using kerberos +;krb5_auth = no + +# when using kerberos, request a "FILE" krb5 credential cache type +# (leave empty to just do krb5 authentication but not have a ticket +# afterwards) +;krb5_ccache_type = + +# make successful authentication dependend on membership of one SID +# (can also take a name) +;require_membership_of = + +# password expiry warning period in days +;warn_pwd_expire = 14 + +# omit pam conversations +;silent = no + +# create homedirectory on the fly +;mkhomedir = no diff --git a/server/samba/files/fedora/samba.log b/server/samba/files/fedora/samba.log new file mode 100644 index 0000000000..6ccd04dd32 --- /dev/null +++ b/server/samba/files/fedora/samba.log @@ -0,0 +1,7 @@ +/var/log/samba/* { + notifempty + olddir /var/log/samba/old + missingok + sharedscripts + copytruncate +} diff --git a/server/samba/files/fedora/samba.pamd b/server/samba/files/fedora/samba.pamd new file mode 100644 index 0000000000..66cd2a9e81 --- /dev/null +++ b/server/samba/files/fedora/samba.pamd @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth required pam_nologin.so +auth include password-auth +account include password-auth +session include password-auth +password include password-auth diff --git a/server/samba/files/fedora/samba.xinetd b/server/samba/files/fedora/samba.xinetd new file mode 100644 index 0000000000..8b62348dde --- /dev/null +++ b/server/samba/files/fedora/samba.xinetd @@ -0,0 +1,15 @@ +# default: off +# description: SWAT is the Samba Web Admin Tool. Use swat \ +# to configure your Samba server. To use SWAT, \ +# connect to port 901 with your favorite web browser. +service swat +{ + port = 901 + socket_type = stream + wait = no + only_from = 127.0.0.1 + user = root + server = /usr/sbin/swat + log_on_failure += USERID + disable = yes +} diff --git a/server/samba/files/fedora/smb.conf.default b/server/samba/files/fedora/smb.conf.default new file mode 100644 index 0000000000..fe0d921e37 --- /dev/null +++ b/server/samba/files/fedora/smb.conf.default @@ -0,0 +1,320 @@ +# This is the main Samba configuration file. For detailed information about the +# options listed here, refer to the smb.conf(5) manual page. Samba has a huge +# number of configurable options, most of which are not shown in this example. +# +# The Official Samba 3.2.x HOWTO and Reference Guide contains step-by-step +# guides for installing, configuring, and using Samba: +# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf +# +# The Samba-3 by Example guide has working examples for smb.conf. This guide is +# generated daily: http://www.samba.org/samba/docs/Samba-Guide.pdf +# +# In this file, lines starting with a semicolon (;) or a hash (#) are +# comments and are ignored. This file uses hashes to denote commentary and +# semicolons for parts of the file you may wish to configure. +# +# Note: Run the "testparm" command after modifying this file to check for basic +# syntax errors. +# +#--------------- +# Security-Enhanced Linux (SELinux) Notes: +# +# Turn the samba_domain_controller Boolean on to allow Samba to use the useradd +# and groupadd family of binaries. Run the following command as the root user to +# turn this Boolean on: +# setsebool -P samba_domain_controller on +# +# Turn the samba_enable_home_dirs Boolean on if you want to share home +# directories via Samba. Run the following command as the root user to turn this +# Boolean on: +# setsebool -P samba_enable_home_dirs on +# +# If you create a new directory, such as a new top-level directory, label it +# with samba_share_t so that SELinux allows Samba to read and write to it. Do +# not label system directories, such as /etc/ and /home/, with samba_share_t, as +# such directories should already have an SELinux label. +# +# Run the "ls -ldZ /path/to/directory" command to view the current SELinux +# label for a given directory. +# +# Set SELinux labels only on files and directories you have created. Use the +# chcon command to temporarily change a label: +# chcon -t samba_share_t /path/to/directory +# +# Changes made via chcon are lost when the file system is relabeled or commands +# such as restorecon are run. +# +# Use the samba_export_all_ro or samba_export_all_rw Boolean to share system +# directories. To share such directories and only allow read-only permissions: +# setsebool -P samba_export_all_ro on +# To share such directories and allow read and write permissions: +# setsebool -P samba_export_all_rw on +# +# To run scripts (preexec/root prexec/print command/...), copy them to the +# /var/lib/samba/scripts/ directory so that SELinux will allow smbd to run them. +# Note that if you move the scripts to /var/lib/samba/scripts/, they retain +# their existing SELinux labels, which may be labels that SELinux does not allow +# smbd to run. Copying the scripts will result in the correct SELinux labels. +# Run the "restorecon -R -v /var/lib/samba/scripts" command as the root user to +# apply the correct SELinux labels to these files. +# +#-------------- +# +#======================= Global Settings ===================================== + +[global] + +# ----------------------- Network-Related Options ------------------------- +# +# workgroup = the Windows NT domain name or workgroup name, for example, MYGROUP. +# +# server string = the equivalent of the Windows NT Description field. +# +# netbios name = used to specify a server name that is not tied to the hostname. +# +# interfaces = used to configure Samba to listen on multiple network interfaces. +# If you have multiple interfaces, you can use the "interfaces =" option to +# configure which of those interfaces Samba listens on. Never omit the localhost +# interface (lo). +# +# hosts allow = the hosts allowed to connect. This option can also be used on a +# per-share basis. +# +# hosts deny = the hosts not allowed to connect. This option can also be used on +# a per-share basis. +# +# max protocol = used to define the supported protocol. The default is NT1. You +# can set it to SMB2 if you want experimental SMB2 support. +# + workgroup = MYGROUP + server string = Samba Server Version %v + +; netbios name = MYSERVER + +; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 +; hosts allow = 127. 192.168.12. 192.168.13. + +; max protocol = SMB2 + +# --------------------------- Logging Options ----------------------------- +# +# log file = specify where log files are written to and how they are split. +# +# max log size = specify the maximum size log files are allowed to reach. Log +# files are rotated when they reach the size specified with "max log size". +# + + # log files split per-machine: + log file = /var/log/samba/log.%m + # maximum size of 50KB per log file, then rotate: + max log size = 50 + +# ----------------------- Standalone Server Options ------------------------ +# +# security = the mode Samba runs in. This can be set to user, share +# (deprecated), or server (deprecated). +# +# passdb backend = the backend used to store user information in. New +# installations should use either tdbsam or ldapsam. No additional configuration +# is required for tdbsam. The "smbpasswd" utility is available for backwards +# compatibility. +# + + security = user + passdb backend = tdbsam + + +# ----------------------- Domain Members Options ------------------------ +# +# security = must be set to domain or ads. +# +# passdb backend = the backend used to store user information in. New +# installations should use either tdbsam or ldapsam. No additional configuration +# is required for tdbsam. The "smbpasswd" utility is available for backwards +# compatibility. +# +# realm = only use the realm option when the "security = ads" option is set. +# The realm option specifies the Active Directory realm the host is a part of. +# +# password server = only use this option when the "security = server" +# option is set, or if you cannot use DNS to locate a Domain Controller. The +# argument list can include My_PDC_Name, [My_BDC_Name], and [My_Next_BDC_Name]: +# +# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] +# +# Use "password server = *" to automatically locate Domain Controllers. + +; security = domain +; passdb backend = tdbsam +; realm = MY_REALM + +; password server = + +# ----------------------- Domain Controller Options ------------------------ +# +# security = must be set to user for domain controllers. +# +# passdb backend = the backend used to store user information in. New +# installations should use either tdbsam or ldapsam. No additional configuration +# is required for tdbsam. The "smbpasswd" utility is available for backwards +# compatibility. +# +# domain master = specifies Samba to be the Domain Master Browser, allowing +# Samba to collate browse lists between subnets. Do not use the "domain master" +# option if you already have a Windows NT domain controller performing this task. +# +# domain logons = allows Samba to provide a network logon service for Windows +# workstations. +# +# logon script = specifies a script to run at login time on the client. These +# scripts must be provided in a share named NETLOGON. +# +# logon path = specifies (with a UNC path) where user profiles are stored. +# +# +; security = user +; passdb backend = tdbsam + +; domain master = yes +; domain logons = yes + + # the following login script name is determined by the machine name + # (%m): +; logon script = %m.bat + # the following login script name is determined by the UNIX user used: +; logon script = %u.bat +; logon path = \\%L\Profiles\%u + # use an empty path to disable profile support: +; logon path = + + # various scripts can be used on a domain controller or a stand-alone + # machine to add or delete corresponding UNIX accounts: + +; add user script = /usr/sbin/useradd "%u" -n -g users +; add group script = /usr/sbin/groupadd "%g" +; add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u" +; delete user script = /usr/sbin/userdel "%u" +; delete user from group script = /usr/sbin/userdel "%u" "%g" +; delete group script = /usr/sbin/groupdel "%g" + + +# ----------------------- Browser Control Options ---------------------------- +# +# local master = when set to no, Samba does not become the master browser on +# your network. When set to yes, normal election rules apply. +# +# os level = determines the precedence the server has in master browser +# elections. The default value should be reasonable. +# +# preferred master = when set to yes, Samba forces a local browser election at +# start up (and gives itself a slightly higher chance of winning the election). +# +; local master = no +; os level = 33 +; preferred master = yes + +#----------------------------- Name Resolution ------------------------------- +# +# This section details the support for the Windows Internet Name Service (WINS). +# +# Note: Samba can be either a WINS server or a WINS client, but not both. +# +# wins support = when set to yes, the NMBD component of Samba enables its WINS +# server. +# +# wins server = tells the NMBD component of Samba to be a WINS client. +# +# wins proxy = when set to yes, Samba answers name resolution queries on behalf +# of a non WINS capable client. For this to work, there must be at least one +# WINS server on the network. The default is no. +# +# dns proxy = when set to yes, Samba attempts to resolve NetBIOS names via DNS +# nslookups. + +; wins support = yes +; wins server = w.x.y.z +; wins proxy = yes + +; dns proxy = yes + +# --------------------------- Printing Options ----------------------------- +# +# The options in this section allow you to configure a non-default printing +# system. +# +# load printers = when set you yes, the list of printers is automatically +# loaded, rather than setting them up individually. +# +# cups options = allows you to pass options to the CUPS library. Setting this +# option to raw, for example, allows you to use drivers on your Windows clients. +# +# printcap name = used to specify an alternative printcap file. +# + + load printers = yes + cups options = raw + +; printcap name = /etc/printcap + # obtain a list of printers automatically on UNIX System V systems: +; printcap name = lpstat +; printing = cups + +# --------------------------- File System Options --------------------------- +# +# The options in this section can be un-commented if the file system supports +# extended attributes, and those attributes are enabled (usually via the +# "user_xattr" mount option). These options allow the administrator to specify +# that DOS attributes are stored in extended attributes and also make sure that +# Samba does not change the permission bits. +# +# Note: These options can be used on a per-share basis. Setting them globally +# (in the [global] section) makes them the default for all shares. + +; map archive = no +; map hidden = no +; map read only = no +; map system = no +; store dos attributes = yes + + +#============================ Share Definitions ============================== + +[homes] + comment = Home Directories + browseable = no + writable = yes +; valid users = %S +; valid users = MYDOMAIN\%S + +[printers] + comment = All Printers + path = /var/spool/samba + browseable = no + guest ok = no + writable = no + printable = yes + +# Un-comment the following and create the netlogon directory for Domain Logons: +; [netlogon] +; comment = Network Logon Service +; path = /var/lib/samba/netlogon +; guest ok = yes +; writable = no +; share modes = no + +# Un-comment the following to provide a specific roving profile share. +# The default is to use the user's home directory: +; [Profiles] +; path = /var/lib/samba/profiles +; browseable = no +; guest ok = yes + +# A publicly accessible directory that is read only, except for users in the +# "staff" group (which have write permissions): +; [public] +; comment = Public Stuff +; path = /home/samba +; public = yes +; writable = yes +; printable = no +; write list = +staff diff --git a/server/samba/files/fedora/swat.desktop b/server/samba/files/fedora/swat.desktop new file mode 100644 index 0000000000..e5b8a69869 --- /dev/null +++ b/server/samba/files/fedora/swat.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Samba Configuration +Name[de]=Samba Konfiguration +Name[tr]=Samba Yapılandırması +Type=Application +Comment=Configure Samba with a web based interface +Comment[tr]=Web tabanlı Samba yapılandırması +Exec=htmlview http://127.0.0.1:901/ +Terminal=false +Categories=X-Red-Hat-Extra;Application;System;X-Red-Hat-ServerConfig; diff --git a/server/samba/files/lmhosts b/server/samba/files/lmhosts new file mode 100644 index 0000000000..75721cd5af --- /dev/null +++ b/server/samba/files/lmhosts @@ -0,0 +1 @@ +127.0.0.1 localhost diff --git a/server/samba/files/samba.confd b/server/samba/files/samba.confd new file mode 100644 index 0000000000..81a8792e25 --- /dev/null +++ b/server/samba/files/samba.confd @@ -0,0 +1,2 @@ +#set winbind="yes" if you want winbind +winbind="no" diff --git a/server/samba/files/samba.logrotate b/server/samba/files/samba.logrotate new file mode 100644 index 0000000000..4d489e57cf --- /dev/null +++ b/server/samba/files/samba.logrotate @@ -0,0 +1,9 @@ +/var/log/samba/*.log /var/log/samba/log.* { + notifempty + missingok + sharedscripts + copytruncate + postrotate + /bin/kill -HUP `cat /run/smbd.pid /run/nmbd.pid /run/winbindd.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff --git a/server/samba/files/samba.pam b/server/samba/files/samba.pam new file mode 100644 index 0000000000..4a38cda46f --- /dev/null +++ b/server/samba/files/samba.pam @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth required pam_smbpass.so nodelay +account include system-auth +session include system-auth +password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf diff --git a/server/samba/files/smb.conf b/server/samba/files/smb.conf new file mode 100644 index 0000000000..44625562f9 --- /dev/null +++ b/server/samba/files/smb.conf @@ -0,0 +1,63 @@ +# PiSiLinux samba configuration + +[global] +workgroup = PiSiLinuxWorkGroup +server string = %h (workstation) +log file = /var/log/samba/samba.log +max log size = 50 +dns proxy = no + +# We are using share model security +security = user + +map to guest = Bad User +usershare allow guests = Yes +usershare max shares = 40 +usershare owner only = False +usershare path = /var/lib/samba/usershares + +# Sample sharings are defined here. +# Modify these according to your taste. + +# Un-comment the following and create the +# netlogon directory for Domain Logons + +; [netlogon] +; comment = Network Logon Service +; path = /usr/local/samba/lib/netlogon +; guest ok = yes +; writable = no +; share modes = no + +# All printers are by default shared by Samba. +# Use "browseable = yes" for other clients +# to browse this printer share. + +[printers] +comment = All printers +path = /var/spool/samba +browseable = no +guest ok = no +printable = yes +writable = no +create mode = 0700 + +# A sample share that is enabled by default + +[share] +comment = Samba Linux share +path = /home/samba +browseable = yes +guest ok = yes + +# A sample sharing that everyone can access to. +# Modify the "path" statement so that it points +# to your directory you want to share. + +;[public] +; path = /usr/somewhere/else/public +; public = yes +; only guest = yes +; writable = no +; printable = no + diff --git a/server/samba/files/smbusers b/server/samba/files/smbusers new file mode 100644 index 0000000000..ae3389f53f --- /dev/null +++ b/server/samba/files/smbusers @@ -0,0 +1,3 @@ +# Unix_name = SMB_name1 SMB_name2 ... +root = administrator admin +nobody = guest pcguest smbguest diff --git a/server/samba/files/system-auth-winbind b/server/samba/files/system-auth-winbind new file mode 100644 index 0000000000..af859af72b --- /dev/null +++ b/server/samba/files/system-auth-winbind @@ -0,0 +1,17 @@ +#%PAM-1.0 + +auth required /lib/security/pam_env.so +auth sufficient /lib/security/pam_winbind.so +auth sufficient /lib/security/pam_unix.so likeauth nullok use_first_pass +auth required /lib/security/pam_deny.so + +account sufficient /lib/security/pam_winbind.so +account required /lib/security/pam_unix.so + +password required /lib/security/pam_cracklib.so retry=3 +password sufficient /lib/security/pam_unix.so nullok use_authtok md5 shadow +password required /lib/security/pam_deny.so + +session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=0022 +session required /lib/security/pam_limits.so +session required /lib/security/pam_unix.so diff --git a/server/samba/files/tmpfiles.conf b/server/samba/files/tmpfiles.conf new file mode 100644 index 0000000000..9b2806c0e0 --- /dev/null +++ b/server/samba/files/tmpfiles.conf @@ -0,0 +1 @@ +D /run/samba 0755 root root diff --git a/server/samba/pspec.xml b/server/samba/pspec.xml new file mode 100644 index 0000000000..9865d7ada0 --- /dev/null +++ b/server/samba/pspec.xml @@ -0,0 +1,218 @@ + + + + + samba + http://www.samba.org + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + service + A suite of SMB and CIFS client/server programs for UNIX + samba is a free software implementation of Microsoft's networking protocol released under the GNU General Public License. As of version 3, Samba not only provides file and print services for various Microsoft Windows clients but can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain. + http://us1.samba.org/samba/ftp/stable/samba-4.2.3.tar.gz + + keyutils + acl-devel + pam-devel + attr-devel + popt-devel + zlib-devel + libcap-devel + python-devel + ncurses-devel + readline-devel + e2fsprogs-devel + libgcrypt-devel + avahi-libs + + cups-devel + avahi-devel + + + gnutls-devel + libaio-devel + + mit-kerberos + iniparser-devel + libtalloc-devel + libtevent-devel + openldap-client + libarchive-devel + gdb-devel + libtdb-devel + cyrus-sasl-devel + + + + + samba + + cups + avahi + gdb + + gnutls + libaio + libbsd + + keyutils + iniparser + libtalloc + libtevent + avahi-libs + openldap-client + cyrus-sasl + libtdb + + + /run + /etc + /var/lib + /var/log + /usr/lib + /sbin + /usr/share/man + /usr/bin + /usr/sbin + /lib/security + /usr/share/samba + /usr/share/perl5 + /var/cache/samba + /usr/share/locale + /usr/lib/tmpfiles.d/samba.conf + + + lmhosts + samba.pam + smbusers + smb.conf + samba.confd + tmpfiles.conf + system-auth-winbind + + + System.Package + System.Service + + + + + samba-devel + Development files for samba + + libldb-devel + libtalloc-devel + libtevent-devel + samba + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2015-07-30 + 4.2.3 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2015-01-25 + 4.1.16 + Version bump. + Ergün Salman + Poyraz76@pisilinux.org + + + 2014-07-04 + 4.1.9 + Version Bump and security update(CVE-2014-0244, CVE-2014-3493). + Vedat Demir + vedat@pisilinux.org + + + 2014-06-04 + 4.1.8 + Version Bump. + Vedat Demir + vedat@pisilinux.org + + + 2014-05-20 + 4.1.7 + Rebuild. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-04-25 + 4.1.7 + Version bump. + Marcin Bojara + marcin@pisilinux.org + + + 2014-04-04 + 4.1.6 + Fix build with readline6.3 + Ertuğrul Erata + ertugrulerata@gmail.com + + + 2014-03-13 + 4.1.6 + Version bump, remove swat package. + Serdar Soytetir + kaptan@pisilinux.org + + + 2014-03-10 + 4.1.3 + Rebuild + Varol Maksutoğlu + waroi@pisilinux.org + + + 2014-01-09 + 4.1.3 + Version bump. Add tmpfiles.conf + Marcin Bojara + marcin@pisilinux.org + + + 2013-11-16 + 4.1.1 + Version bump. + Aydın Demirel + aydin.demirel@pisilinux.org + + + 2013-07-07 + 4.0.7 + Version bump. + Marcin Bojara + marcin@pisilinux.org + +  + 2013-03-18 + 3.6.12 + V.Bump + PisiLinux Community + admins@pisilinux.org + + + 2011-09-09 + 3.5.10 + First release + Pisi Linux Admins + admins@pisilinux.org + + + diff --git a/server/samba/translations.xml b/server/samba/translations.xml new file mode 100644 index 0000000000..2fec544277 --- /dev/null +++ b/server/samba/translations.xml @@ -0,0 +1,13 @@ + + + + samba + Linux için Windows ağ paylaşım servisi + Samba, Linux ve Unix işletim sistemleri ile Windows NT ve Windows 9x işletim sistemleri arasındaki iletişimi sağlayan bir ağ sunucusu uygulamasıdır. Samba yalnızca Linux ve windows makinaların birbirlerini görmelerini sağlamaz aynı zamanda Linux çalıştıran bilgisayarların windows ağında yazıcı sunucusu gibi işlevleri edinmesi içinde kullanılır. Ayrıca Active Directory ile de uyumludur. + + + + samba-devel + samba için geliştirme dosyaları + +