File: gsambad.spec

package info (click to toggle)
gsambad 0.1.4-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 5,228 kB
  • ctags: 644
  • sloc: ansic: 9,448; sh: 3,637; makefile: 218
file content (108 lines) | stat: -rw-r--r-- 3,263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%define desktop_vendor newrpms
%{!?_dist: %{expand: %%define dist rhfc5}}

Summary:	GSAMBAD -- A GTK+ administation tool for the SAMBA server.
Name:		gsambad
Version:	0.1.4
Release:	0.1.%{dist}.nr
License:	GPL
Group:		Applications/System
URL:		http://mange.dynalias.org/linux.html
Source0:	http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
BuildRoot:	%{_builddir}/%{name}-%{version}-root
Provides:	gsambad

%description
GSAMBAD is a fast and easy to use GTK+ administration tool for the SAMBA server.

%prep
%setup -q
%configure

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

# Pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 %{_sysconfdir}/pam.d/%{name} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 %{_sysconfdir}/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# Desktop entry
install -d %{buildroot}%{_datadir}/applications
install -m 644 desktop/net-gsambad.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# Doc files
install -d %{buildroot}%{_datadir}/doc/%{name}
install -m 644  README COPYING AUTHORS ChangeLog %{buildroot}%{_datadir}/doc/%{name}

# Logon scripts 
install -d %{buildroot}/home/netlogon
install -m 755 scripts/example.bat %{buildroot}/home/netlogon

# PDF Printer script
install -d %{buildroot}%{_bindir}
install -m 755 scripts/gsambadpdf %{buildroot}%{_bindir}



################%find_lang %name

%post 
if test ! -h %{_bindir}/gsambad ; then \
ln -s %{_bindir}/consolehelper %{_bindir}/gsambad ; \
fi;

%clean
rm -rf $RPM_BUILD_ROOT

#################%files -f %{name}.lang

%files

%defattr(0755, root, root)
%{_sbindir}/%{name}
%{_bindir}/gsambadpdf
/home/netlogon/example.bat

%defattr(0644, root, root)
#%doc COPYING AUTHORS ChangeLog
%{_datadir}/doc/%{name}/README
%{_datadir}/doc/%{name}/COPYING 
%{_datadir}/doc/%{name}/AUTHORS 
%{_datadir}/doc/%{name}/ChangeLog

%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*.png

%changelog
* Wed Aug 2 2006 Magnus-swe <magnus-swe@telia.com>
- Fixed connections tab and split filenames.
- Fixed add_standard_users() and the NOBODY user
- account addition (Thanks to Andreas)
- Added configure option SAMBA_USERMAP.
- The smbusers map file will now be created if
- its bad or doesnt exist.
- The samba root user is now added as a locked account.
- Users changing to BDC, PDC or ADS are notified to alter
- samba root conditions. The 10 second non-root user dialog
- can now be closed with the close buttons.

* Sun Jul 2 2006 Magnus-swe <magnus-swe@telia.com>
- Added multiconnection killing and old conf backup.
- New detection for no good configurations.
* Sat Jun 17 2006 Magnus-swe <magnus-swe@telia.com>
- Added tabs: domain mgmt, connections and machine accounts. 
* Thu May 25 2006 Magnus-swe <magnus-swe@telia.com>
- Some small typo fixes and updates.
* Mon Mar 27 2006 Magnus-swe <magnus-swe@telia.com>
- Added a virtual pdf printer and output share.
- Added a netlogon example.bat script and alot more.