debian/0000755000000000000000000000000011550120453007162 5ustar debian/postrm0000644000000000000000000000012711522613770010441 0ustar #!/bin/sh set -e if [ "$1" = purge ]; then rm -rf /var/lib/sadms fi #DEBHELPER# debian/copyright0000644000000000000000000000162011545060617011125 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: sadms Source: http://sadms.sourceforge.net/ Files: * Copyright: 2007, Bernard Bou License: GPL-2+ sadms 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. sadms 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. On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2008, Tyler J Gillies License: GPL debian/control0000644000000000000000000000202611522613765010601 0ustar Source: sadms Section: net Priority: optional Maintainer: Ubuntu MOTU Developers Build-Depends: debhelper (>= 7.0.50~), python-support Standards-Version: 3.8.3 Package: sadms Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-gtk2, python-glade2, gksu, samba (>= 3.0), samba-common (>= 3.0), winbind (>= 3.0), smbclient, smbfs | cifs-utils, nscd, libpam-mount, krb5-user, expect, gawk, bind9-host, iproute, acl Description: integrate a machine in an Active Directory environment SADMS takes care of * configuring Kerberos * configuring Winbind * configuring Samba * configuring the Name Switch Service * synchronizing clocks * joining the server to the Active Directory Domain * building home directories with the proper file permissions * making shares * configuring the start of the daemons * optionally installing and configuring PAM modules for automatically authenticating, making home and mounting samba share * optionally managing Posix ACLs debian/source/0000755000000000000000000000000011522613765010476 5ustar debian/source/format0000644000000000000000000000001411530421245011671 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000117711530423413011231 0ustar Problems with avahi-daemon -------------------------- If your network domain is '.local', avahi-daemon and sadms will conflict, and settings for sadms will not be applied after a reboot. From the avahi documentation: If you come across a network where .local is a unicast DNS domain, please contact the local administrator and ask him to move his DNS zone to a different domain. If this is not possible, we recommend not to use Avahi in such a network at all. If you don't need it, avahi-daemon can be disabled or uninstalled. -- Gauvain Pocentek Mon, 21 Feb 2011 09:39:56 +0100 debian/compat0000644000000000000000000000000211522613766010375 0ustar 7 debian/watch0000644000000000000000000000006211522613765010225 0ustar version=3 http://sf.net/sadms/sadms-(.+)\.tar\.gz debian/changelog0000644000000000000000000000635711550015064011050 0ustar sadms (2.0.15.repack-0ubuntu2) natty; urgency=low * debian/patches/06_find_glibc_version.patch: added - use dpkg to discover the version of glibc on the system - LP: #746330 * debian/patches/07_awk_shebang.patch: added - drop (wrong) awk shebang * debian/copyright: - add reference to /usr/share/common-licenses/ -- Gauvain Pocentek Thu, 31 Mar 2011 13:01:39 +0200 sadms (2.0.15.repack-0ubuntu1) natty; urgency=low * Repack the archive to drop .mo files and CVS directories * debian/patches: - 00_Makefile.patch: updated - 02_awk.patch: dropped, fixed upstream - 06_bash_not_sh.patch: dropped, applied upstream - 07_use_upstart_script_names.patch: dropped, applied upstream - 08_french.patch: dropped, translation included upstream * debian/control: - drop unneeded tofrodos B-D * debian/README.Debian: added -- Gauvain Pocentek Thu, 03 Feb 2011 21:25:57 +0100 sadms (2.0.14~CVS20100222-0ubuntu2) maverick; urgency=low * debian/patches/07_use_upstart_script_names.patch: - use the upstart scripts instead of sysV ones (samba -> smbd, nmbd) - LP: #581637 * debian/patches/08_french.patch: - include french translations from Rémy Boulle * debian/patches/series: - refreshed * debian/control: - depend on cifs-utils | smbfs * debian/rules: - make sure to remove .mo files -- Gauvain Pocentek Tue, 24 Aug 2010 16:13:11 +0200 sadms (2.0.14~CVS20100222-0ubuntu1) lucid; urgency=low * Initial release based on previous Ubuntu package (Thanks Tyler J Gillies) * New upstream CVS snapshot * Switch to dpkg format 3.0 (quilt) * Use the upstream control file with modifications: - bump standards version to 3.8.3 - build depend on python-support, debhelper (>= 7.0.50~) and tofrodos - don't depend on bsdutils (essential package) * debian/rules: use a tiny debhelper 7 makefile * debian/compat: set to 7 * debian/patches/series: created * debian/patches/*.patch: follow DEP-3 guidelines * Update debian/patches/00_Makefile.patch: - install in /usr - use su-to-root on Debian and gksu on Ubuntu - don't use the deprecated Encoding field in desktop files - fix scripts links - don't install COPYING - install the html documentation in /usr/share/doc/sadms/html * locales: - debian/patches/04_locale_dir.patch: set the locale directory to /usr/share/locale - debian/rules: move the translations to /usr/share/locale, and use generic locales (en and fr) * debian/patches/05_doc_dir.patch: update the location of the html documentation index file * debian/patches/06_bash_not_sh.patch: use bash and not sh in lsb_release.sh scripts (it contains bashisms) * manpages: - fix lintian warnings - move them to debian/man and update manpages accordingly * Add debian/README.source to explain how to build a tarball from CVS * Add a watch file * Updated debian/copyright format -- Gauvain Pocentek Mon, 22 Feb 2010 20:14:54 +0100 sadms (2.0.12-0ubuntu1) hardy; urgency=low * Initial release. LP: #95656 -- Tyler J Gillies Tue, 29 Jan 2008 12:05:37 -1000 debian/manpages0000644000000000000000000000021511522613765010712 0ustar debian/man/fsacls.1 debian/man/sadms.1 debian/man/sadms-globs.1 debian/man/sadms-share.1 debian/man/sadms-shares.1 debian/man/sadms-users.1 debian/man/0000755000000000000000000000000011522613767007753 5ustar debian/man/sadms-globs.10000644000000000000000000000057611522613767012260 0ustar .\" Text automatically generated by txt2man .TH sadms-globs 1 "February 02, 2008" "" "" .SH NAME sadms-globs \- set sadms global parameters .RS This module allows globals parameters to be set. These are system\\fB-wide\fP settings or settings that apply to all shares (unless overridden in the share's section). Please refer to the Samba documentation available from www.samba.org. debian/man/sadms-users.10000644000000000000000000000041711522613767012305 0ustar .\" Text automatically generated by txt2man .TH sadms-users 1 "February 02, 2008" "" "" .SH NAME sadms-users \- list current users, groups and homes .RS This module allows users, groups and homes to be displayed. Homes can be created or deleted. Their permissions reset. debian/man/sadms.10000644000000000000000000001234711522613767011153 0ustar .\" Text automatically generated by txt2man .TH sadms 1 "February 02, 2008" "" "" .SH NAME sadms \- turn a Linux box into a domain controller .RS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .SH SADMS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .PP What to do ? \\fB-install\fP the package's dependencies (this may be carried out automatically through apt, yum, urpmi and the likes) \\fB-run\fP precheck to ensure everything went well \\fB-detect\fP the data \\fB-fill\fP in the remaining data \\fB-optionally\fP run the network,dns,Kerberos diagnostics \\fB-run\fP install \\fB-you\fP'll have to wait for some time until Active Directory users are imported \\fB-run\fP install PAM if Active Directory users are to interactively log in to the host. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .SH PRETESTS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .PP .nf .fam C This series of tests determine: \- if Samba 3 is present on the host \- if krb5-workstation package is present \- if pam_mount is installed Note that the ./START script can guide you into installing the required libraries. .fam T .fi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .SH DATA ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .PP DNS : This is the DNS suffix that your Active Directory operates on. .PP realm : This is the Kerberos realm, usually the same as the DNS domain but in uppercase. .PP kdc : This is a Domain Controller that delivers Kerberos tickets used in authentication. In case it is not found through DNS. Also referred to as the KDC the Key Distribution Center. .PP netbios domain name : This is the (short) name for the domain, the way domains were named before Active Directory. .PP netbios server name : This is the Netbios name of the Samba host you are currently configuring. Though this is by no means compulsory, it makes sense to provide the same name as the DNS, to be on the safe side. .PP domain users group : The container for Domain Users. This is localized and is 'Domain users' in English, \'Utilisa. du domaine\' in French. .PP hosts allow : This points at the network that is allowed to access the Samba host being configured. This parameter is a comma, space, or tab delimited set of hosts which are permitted to access the Samba services. You can specify the hosts by name or IP number. You can also specify hosts by network/netmask pairs and by netgroup names. See man smb.conf for further reference. .PP OU to place host in : This is the Organizational Unit container the host to be configured will be placed in in Active Directory. This may vary with languages and is \'Computers\' in English. .PP WINS server : This specifies the IP address (or DNS name: IP address for preference) of the WINS server that the host should register with. This is optional and the data will be placed into smb.conf if the data is non\\fB-null.\fP The line in smb.conf should then be commented out for the parameter to be disabled.domain administrator login : Active Directory administrator login you are operating as. This is necessary for a host to enter a domain. .PP domain administrator password : Active Directory administrator password. .PP domain users group : The container for Domain Users. This is localized and is 'Domain users' in English, \'Utilisa. du domaine\' in French. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .SH PAM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .PP .nf .fam C This will configure system authentication (/etc/pam.d/system\-auth) to use \- pam_winbind : use Active Directory authentication, so the user does not have to have a local account to login to this host. \- pam_mkhomedir : create a local home directory footprint for Active Directory user that does not have a local home. \- pam_mount : connect to a Samba or Windows remote share that could contain a domain home. The share will be mounted on the local file system (/mnt/net). .fam T .fi Important note: Tampering with the /etc/pam.d service files may result in the machine being unable to accept any authentication even from root. Should such a situation occur, reboot the system in administrative mode (single) and use an editor to restore the /etc/pam.d/system\\fB-auth\fP to its previous contents : remove the pam_winbind, pam_mount, pam_Mkhomedir lines and remove use_first\\fB-pass\fP in pam_unix line. It is recommended that the system administrator leave a console session open while carrying out the tests. .PP Home server : This is the Samba or Windows server that hosts the share the user will connect to and will be mounted at /mnt/net. .PP Home share : This is the name of the share (without any leading server name). If the share is to be determined at run time and is user\- dependent, use * as a place\\fB-holder\fP for the logged\\fB-on\fP user name. Tests with more than one level have so far failed (eg users/*). .PP Client signing : If you connect to a Windows 2003 server client signing my be necessary. smbfs does not support client signing. So use the cifs file system. See the end of /etc/psecurity/pammount.conf. debian/man/fsacls.10000644000000000000000000000134711522613767011315 0ustar .\" Text automatically generated by txt2man .TH fsacls 1 "February 02, 2008" "" "" .SH NAME fsacls \- manage file system ACLs .RS This module provides a graphical interface to managing the file system Access Control Lists (or ACLs) that provide fine\\fB-grained\fP control over access to file system objects. .PP The acls.py script., like SADMS, requires GTK. .PP You can directly run ./acls.py or fsacls or from the SADMS menu. .PP For ACLs to be effective, .RS .IP \(bu 3 the kernel must be recompiled with the ACL patch, unless it is included in the distribution .IP \(bu 3 the file system must support ACLs (ext3, reiserfs, xfs, \.\.\.) and be mounted with the proper options .IP \(bu 3 the getfacl and setfacl utilities must be available debian/man/sadms-shares.10000644000000000000000000000040711522613770012422 0ustar .\" Text automatically generated by txt2man .TH sadms-shares 1 "February 02, 2008" "" "" .SH NAME sadms-shares \- get information about current shares .RS This gives you information about the current shares. Double\\fB-click\fP one share to get more information. debian/man/sadms-share.10000644000000000000000000001463511522613767012255 0ustar .\" Text automatically generated by txt2man .TH sadms-share 1 "February 02, 2008" "" "" .SH NAME sadms-share \- manage shares .RS You will find below some reference data to help you fine\\fB-tune\fP the settings and tailor the shared spaces to your needs. Proper permissions are obtained by tuning both the share level and the file system level and it can be very tricky. File system permissions are available for changes in the last tab. .RE .RE .PP .RS share tutorial .SH REFERENCE from Samba 3 official documentation .TP .B invalid users (S) Specifies a list of users that can connect to a share and that should not be allowed to login to this service. A name starting with a '@' is interpreted as an NIS netgroup first (if your system supports NIS), and then as a UNIX group if the name was not found in the NIS netgroup database. A name starting with '+' is interpreted only by looking in the UNIX group database. A name starting with '&' is interpreted only by looking in the NIS netgroup database (this requires NIS to be working on your system). The characters '+' and '&' may be used at the start of the name in either order so the value +&group means check the UNIX group database, followed by the NIS netgroup database, and the value &+group means check the NIS netgroup database, followed by the UNIX group database (the same as the '@' prefix). Default: NULL, no invalid users .TP .B valid users (S) Specifies a list of users that can connect to a share and should be allowed to login to this service. A name starting with a '@' is interpreted as an NIS netgroup first (if your system supports NIS), and then as a UNIX group if the name was not found in the NIS netgroup database. A name starting with '+' is interpreted only by looking in the UNIX group database. A name starting with '&' is interpreted only by looking in the NIS netgroup database (this requires NIS to be working on your system). The characters '+' and '&' may be used at the start of the name in either order so the value +&group means check the UNIX group database, followed by the NIS netgroup database, and the value &+group means check the NIS netgroup database, followed by the UNIX group database (the same as the '@' prefix). If this is empty (the default) then any user can login. If a username is in both this list and the invalid users list then access is denied for that user. Default: NULL, no valid users list (allows everyone, anyone can login) .TP .B guest ok If this parameter is set for a service, then no password is required to connect to the service. Privileges will be those of the guest account. .TP .B admin users (S) Specifies a list of users who will be granted administrative privileges on the share. They will do all file operations as the super\\fB-user\fP (root). You should use this option very carefully, as any user in this list will be able to do anything they like on the share, irrespective of file permissions. Default: NULL, no admin users. .TP .B force group (S) Specifies a UNIX group name that will be assigned as the default primary group for all users connecting to this service. This option, sometimes called group, assigns a static group ID that will be used on all connections to a share after the client has successfully authenticated. This is useful for sharing files by ensuring that all access to files on service will use the named group for their permissions checking. Thus, by assigning permissions for this group to the files and directories within this service the Samba administrator can restrict or allow sharing of these files. This assigns a specific group to each new file or directory created from an SMB client. Allowable values: a Unix group name. Sets the effective group name assigned to all users accessing a share. Used to override a user's normal group memberships. In Samba 2.0.5 and above this parameter has extended functionality in the following way. If the group name listed here has a '+' character prepended to it then the current user accessing the share only has the primary group default assigned to this group if they are already assigned as a member of that group. This allows an administrator to decide that only users who are already in a particular group will create files with group ownership set to that group. This gives a finer granularity of ownership assignment. For example, the setting force group = +sys means that only users who are already in group sys will have their default primary group assigned to sys when accessing this Samba share. All other users will retain their ordinary primary group. If the parameter is also set the group specified in force group will override the primary group set in force user. Default: NULL, no forced group .TP .B force user (S) Specifies a UNIX user name that will be assigned as the default user for all users connecting to this service. This is useful for sharing files. You should also use it carefully as using it incorrectly can cause security problems. The force user option assigns a static user ID that will be used on all connections to a share after the client has successfully authenticated. This user name only gets used once a connection is established. Thus clients still need to connect as a valid user and supply a valid password. Once connected, all file operations will be performed as the "forced user", no matter what username the client connected as. This assigns a specific user to each new file or directory created from an SMB client. In Samba 2.0.5 and above this parameter also causes the primary group of the forced user to be used as the primary group for all file activity. Prior to 2.0.5 the primary group was left as the primary group of the connecting user (this was a bug). Default: NULL, no forced user .TP .B read list (S) List of users that are given read\\fB-only\fP access to a service. If the connecting user is in this list then they will not be given write access, no matter what the option is set to. The list can include group names using the syntax described in the parameter. Default: read list = .TP .B write list (S) List of users that are given read\\fB-write\fP access to a service. If the connecting user is in this list then they will be given write access, no matter what the option is set to. The list can include group names using the @group syntax. Note that if a user is in both the read list and the write list then they will be given write access. Default: write list = .PP (S) The current servicename is substituted for %S debian/patches/0000755000000000000000000000000011550015363010614 5ustar debian/patches/07_awk_shebang.patch0000644000000000000000000000054211545060213014413 0ustar Description: drop (wrong) awk shebang bin/conf/pam_parse.awk is never executed directly, so doesn't need a shebang Author: Gauvain Pocentek Forwarded: yes --- a/bin/conf/pam_parse.awk +++ b/bin/conf/pam_parse.awk @@ -1,4 +1,3 @@ -#!/bin/awk # bbou@ac-toulouse.fr # 2007-11-03 11:55:28 # conf/pam_parse.awk debian/patches/01_expect.patch0000644000000000000000000000200711522613766013436 0ustar Description: remove the useless expect shebang Author: Tyler J Gillies Forwarded: no --- a/bin/keygen.expect +++ b/bin/keygen.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-08-15 08:23:21 # expect-keygen --- a/bin/keyload.expect +++ b/bin/keyload.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-08-15 08:23:21 # expect-keyload --- a/bin/scp.expect +++ b/bin/scp.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-08-15 08:23:21 # expect-scp --- a/bin/session.expect +++ b/bin/session.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-09-23 08:14:55 # session.expect --- a/bin/ssh.expect +++ b/bin/ssh.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-08-15 08:23:21 # expect-ssh --- a/bin/ssh-nopassword.expect +++ b/bin/ssh-nopassword.expect @@ -1,4 +1,4 @@ -#!/usr/bin/expect -f + # bbou@ac-toulouse.fr # 2005-08-15 08:23:21 # expect-ssh-nopasswd debian/patches/series0000644000000000000000000000017011545060047012032 0ustar 00_Makefile.patch 01_expect.patch 04_locale_dir.patch 05_doc_dir.patch 06_find_glibc_version.patch 07_awk_shebang.patch debian/patches/05_doc_dir.patch0000644000000000000000000000166511522613766013566 0ustar Description: define the correct location for documentation files As for i18n files, the documentation is installed in a standard directory. SADMS needs to know about this new location. Author: Gauvain Pocentek Forwarded: no Index: sadms-2.0.15/bin/sadms.py =================================================================== --- sadms-2.0.15.orig/bin/sadms.py 2011-02-03 21:38:46.000000000 +0100 +++ sadms-2.0.15/bin/sadms.py 2011-02-03 21:39:04.000000000 +0100 @@ -1761,9 +1761,9 @@ browser=sysSetting['browser'][distribution] urlbase=sysSetting['docs'][distribution] if distribution=="suse" or distribution=="debian": - url=urlbase % ('index.html') + url=urlbase % ('html/index.html') else: - url=urlbase % (self.getVersion(),'index.html') + url=urlbase % (self.getVersion(),'html/index.html') #print '%s %s' % (browser,url) os.spawnv(os.P_NOWAIT,browser,[browser,url]) return debian/patches/00_Makefile.patch0000644000000000000000000001334211522613766013666 0ustar Description: adjust the Makefile - Install the files in folders recommended by the FHS - Use su-to-root and gksudo on Debian and Ubuntu respectively - Remove the deprecated 'Encoding' field from desktop files - Fix symlinks - Don't install COPYING Author: Tyler J Gillies Forwarded: no Index: sadms-2.0.15/Makefile =================================================================== --- sadms-2.0.15.orig/Makefile 2011-02-03 21:52:12.000000000 +0100 +++ sadms-2.0.15/Makefile 2011-02-03 21:56:17.000000000 +0100 @@ -10,11 +10,11 @@ DISTRIBUTIONFAMILY= ifeq ($(DISTRIBUTION),Debian) DISTRIBUTIONFAMILY = DEBIAN - SU = "gksu" + SU = "su-to-root -X -c " endif ifeq ($(DISTRIBUTION),Ubuntu) DISTRIBUTIONFAMILY = DEBIAN - SU = "gksu -u root " + SU = "gksudo " endif ifeq ($(DISTRIBUTION),Redhat) DISTRIBUTIONFAMILY = REDHAT @@ -46,12 +46,12 @@ dos2unix = perl -pi -e 's/\r\n/\n/g' endif -WHERE = /usr/local +WHERE = /usr WHEREBIN = $(WHERE)/bin -WHERELIB = $(WHERE)/lib +WHERELIB = $(WHERE)/share BASE = $(DESTDIR)$(prefix)$(WHERE) BIN = $(BASE)/bin -LIB = $(BASE)/lib +LIB = $(BASE)/share FOLDER = $(LIB)/sadms-$(VERSION) VARFOLDER = $(DESTDIR)/$(prefix)/var/lib/sadms DOCFOLDER = $(DESTDIR)/$(prefix)/usr/share/doc/sadms @@ -78,12 +78,12 @@ cp -R bin/* $(FOLDER) installshortcuts: - ln -s ../lib/sadms-$(VERSION)/sadms.py $(SHORTCUTFOLDER)/sadms - ln -s ../lib/sadms-$(VERSION)/globs.py $(SHORTCUTFOLDER)/sadms-globs - ln -s ../lib/sadms-$(VERSION)/users.py $(SHORTCUTFOLDER)/sadms-users - ln -s ../lib/sadms-$(VERSION)/shares.py $(SHORTCUTFOLDER)/sadms-shares - ln -s ../lib/sadms-$(VERSION)/share.py $(SHORTCUTFOLDER)/sadms-share - ln -s ../lib/sadms-$(VERSION)/acls.py $(SHORTCUTFOLDER)/fsacls + ln -s $(WHERELIB)/sadms-$(VERSION)/sadms.py $(SHORTCUTFOLDER)/sadms + ln -s $(WHERELIB)/sadms-$(VERSION)/globs.py $(SHORTCUTFOLDER)/sadms-globs + ln -s $(WHERELIB)/sadms-$(VERSION)/users.py $(SHORTCUTFOLDER)/sadms-users + ln -s $(WHERELIB)/sadms-$(VERSION)/shares.py $(SHORTCUTFOLDER)/sadms-shares + ln -s $(WHERELIB)/sadms-$(VERSION)/share.py $(SHORTCUTFOLDER)/sadms-share + ln -s $(WHERELIB)/sadms-$(VERSION)/acls.py $(SHORTCUTFOLDER)/fsacls uninstallshortcuts: if [ -L $(SHORTCUTFOLDER)/sadms ];then rm $(SHORTCUTFOLDER)/sadms; fi @@ -95,7 +95,6 @@ installmenu: echo "[Desktop Entry]" > $(MENUFOLDER)/sadms.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms.desktop echo "Exec=$(SU)$(WHEREBIN)/sadms" >> $(MENUFOLDER)/sadms.desktop @@ -110,7 +109,6 @@ echo "Comment[en]=Sadms-Active Directory Integration" >> $(MENUFOLDER)/sadms.desktop echo "Comment[fr]=Sadms-Intégration Active Directory" >> $(MENUFOLDER)/sadms.desktop echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-globs.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-globs.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms-globs.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-globs.desktop echo "Exec=$(SU)$(WHEREBIN)/sadms-globs" >> $(MENUFOLDER)/sadms-globs.desktop @@ -125,7 +123,6 @@ echo "Comment[en]=Sadms-Globals" >> $(MENUFOLDER)/sadms-globs.desktop echo "Comment[fr]=Sadms-Paramètres globaux" >> $(MENUFOLDER)/sadms-globs.desktop echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-shares.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-shares.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms-shares.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-shares.desktop echo "Exec=$(SU)$(WHEREBIN)/sadms-shares" >> $(MENUFOLDER)/sadms-shares.desktop @@ -140,7 +137,6 @@ echo "Comment[en]=Sadms-Shares" >> $(MENUFOLDER)/sadms-shares.desktop echo "Comment[fr]=Sadms-Partages" >> $(MENUFOLDER)/sadms-shares.desktop echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-share.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-share.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms-share.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-share.desktop echo "Exec=$(SU)$(WHEREBIN)/sadms-share" >> $(MENUFOLDER)/sadms-share.desktop @@ -155,7 +151,6 @@ echo "Comment[en]=Sadms-Share" >> $(MENUFOLDER)/sadms-share.desktop echo "Comment[fr]=Sadms-Partage" >> $(MENUFOLDER)/sadms-share.desktop echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-users.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-users.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms-users.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-users.desktop echo "Exec=$(SU)$(WHEREBIN)/sadms-users" >> $(MENUFOLDER)/sadms-users.desktop @@ -170,7 +165,6 @@ echo "Comment[en]=Sadms-Users" >> $(MENUFOLDER)/sadms-users.desktop echo "Comment[fr]=Sadms-Utilisateurs" >> $(MENUFOLDER)/sadms-users.desktop echo "[Desktop Entry]" > $(MENUFOLDER)/sadms-fsacls.desktop - echo "Encoding=UTF-8" >> $(MENUFOLDER)/sadms-fsacls.desktop echo "Type=Application" >> $(MENUFOLDER)/sadms-fsacls.desktop echo "Categories=Application;System;" >> $(MENUFOLDER)/sadms-fsacls.desktop echo "Exec=$(SU)$(WHEREBIN)/fsacls" >> $(MENUFOLDER)/sadms-fsacls.desktop @@ -210,16 +204,16 @@ if [ ! -d $(LIB) ];then mkdir -p $(LIB); fi if [ ! -d $(FOLDER) ];then mkdir -p $(FOLDER); fi if [ ! -d $(VARFOLDER) ];then mkdir -p $(VARFOLDER); fi - if [ ! -d $(DOCFOLDER) ];then mkdir -p $(DOCFOLDER); fi + if [ ! -d $(DOCFOLDER)/html ];then mkdir -p $(DOCFOLDER)/html; fi if [ ! -d $(MENUFOLDER) ];then mkdir -p $(MENUFOLDER); fi installdoc: cp AUTHORS $(DOCFOLDER) cp CHANGELOG $(DOCFOLDER) - cp COPYING $(DOCFOLDER) + #cp COPYING $(DOCFOLDER) cp NEWS $(DOCFOLDER) cp README $(DOCFOLDER) - cp -R htmldocs/* $(DOCFOLDER) + cp -R htmldocs/* $(DOCFOLDER)/html uninstalldoc: rm -Rf $(DOCFOLDER) debian/patches/04_locale_dir.patch0000644000000000000000000000241211522613766014246 0ustar Description: define the correct location for i18n file We install the .mo files in a standard directory, so this patch is needed to make sure that the software will use the correct location to find i18n files. Author: Gauvain Pocentek Forwarded: no Index: sadms-2.0.15/bin/__init__.py =================================================================== --- sadms-2.0.15.orig/bin/__init__.py 2011-02-03 21:37:09.000000000 +0100 +++ sadms-2.0.15/bin/__init__.py 2011-02-03 21:38:46.000000000 +0100 @@ -11,7 +11,7 @@ APP_NAME = "sadms" #Get the local directory since we are not installing anything -local_path = os.path.realpath(os.path.dirname(sys.argv[0])) +local_path = "/usr/share/locale" print local_path # Init the list of languages to support Index: sadms-2.0.15/bin/sadms.py =================================================================== --- sadms-2.0.15.orig/bin/sadms.py 2011-01-30 08:42:04.000000000 +0100 +++ sadms-2.0.15/bin/sadms.py 2011-02-03 21:38:46.000000000 +0100 @@ -125,7 +125,7 @@ langs += ["en_US"] return langs -localepath = os.path.realpath(os.path.dirname(sys.argv[0])) +localepath = "/usr/share/locale" langs = getlangs() for module in (gettext, gtk.glade): module.bindtextdomain(APP_NAME, localepath) debian/patches/06_bash_not_sh.patch0000644000000000000000000000113511522613766014443 0ustar Description: use bash instead of sh The 2 lsb_release.sh contain bashism but use /bin/sh (dash by default) as interpreter. We make sure that bash is used (as it is used in all SADMS shell scripts). Author: Gauvain Pocentek Forwarded: no --- a/bin/lsb_release.sh +++ b/bin/lsb_release.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # lsb_release - collect LSB conformance status about a system # --- a/bin/pre/lsb_release.sh +++ b/bin/pre/lsb_release.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # lsb_release - collect LSB conformance status about a system # debian/patches/06_find_glibc_version.patch0000644000000000000000000000150311550015360015763 0ustar Description: use dpkg to discover the version of glibc on the system Author: Gauvain Pocentek Forwarded: no --- a/bin/_include-defaults.sh +++ b/bin/_include-defaults.sh @@ -24,7 +24,7 @@ export KINIT=kinit # CLIB -export LIBC_VERS=`ls /lib/libc-*.so | tail -1 | sed -e 's/\/lib\/libc-\(.*\)\.so/\1/'` +export LIBC_VERS=`dpkg-query -W -f='${Version}' | cut -d'-' -f1` export LIBC_VERSMAJ=`echo ${LIBC_VERS} | sed 's/\(.\).*/\1/'` # INSTALL --- a/bin/pre/_include-defaults.sh +++ b/bin/pre/_include-defaults.sh @@ -24,7 +24,7 @@ export KINIT=kinit # CLIB -export LIBC_VERS=`ls /lib/libc-*.so | tail -1 | sed -e 's/\/lib\/libc-\(.*\)\.so/\1/'` +export LIBC_VERS=`dpkg-query -W -f='${Version}' | cut -d'-' -f1` export LIBC_VERSMAJ=`echo ${LIBC_VERS} | sed 's/\(.\).*/\1/'` # INSTALL debian/rules0000755000000000000000000000137211522613765010261 0ustar #!/usr/bin/make -f VERSION := $(shell grep ^VERSION Makefile | cut -d= -f2) override_dh_auto_configure: chmod 755 bin/lsb_release.sh $(MAKE) localize override_dh_auto_install: dh_auto_install mkdir -p $(CURDIR)/debian/sadms/usr/share/locale mv $(CURDIR)/debian/sadms/usr/share/sadms-$(VERSION)/en_US \ $(CURDIR)/debian/sadms/usr/share/locale/en mv $(CURDIR)/debian/sadms/usr/share/sadms-$(VERSION)/fr_FR \ $(CURDIR)/debian/sadms/usr/share/locale/fr mv $(CURDIR)/debian/sadms/usr/share/sadms-$(VERSION)/ru_RU \ $(CURDIR)/debian/sadms/usr/share/locale/ru # remove the duplicated doc rm -rf $(CURDIR)/debian/sadms/usr/share/sadms-$(VERSION)/pre/htmldocs override_dh_auto_clean: rm -f $(CURDIR)/bin/*/LC_MESSAGES/*.mo dh_auto_clean %: dh $@ debian/README.source0000644000000000000000000000101611522613765011353 0ustar * Building a new tarball from upstream cvs ------------------------------------------ * update the checkout cd sadms cvs update * create an usable copy VERSION=$(grep ^VERSION Makefile | cut -d= -f2) cvs export -DNOW -d sadms-$VERSION sadms * remove some unwanted files find sadms-$VERSION -name "*.mo" -exec rm {} \; * prepare the clean directory make -C sadms-$VERSION dist * create the archive mv sadms-$VERSION/sadms-$VERSION.tar.gz ../sadms_$VERSION~CVS$(date "+%Y%m%d").orig.tar.gz * cleanup rm -rf sadms-$VERSION