📄 smbldap-tools.spec
字号:
# $Source: /opt/cvs/samba/smbldap-tools/smbldap-tools.spec,v $%define version 0.9.2%define release 1%define name smbldap-tools%define realname smbldap-tools%define _prefix /opt/IDEALX%define _sysconfdir /etc/opt/IDEALXSummary: User & Group administration tools for Samba/LDAPName: %{name}version: %{version}Release: %{release}Group: System Environment/BaseLicense: GPLVendor: IDEALXURL: http://samba.idealx.org/Packager: Jerome Tournier <jerome.tournier@idealx.com>Source0: smbldap-tools-%{version}.tgzBuildRoot: /%{_tmppath}/%{name}BuildRequires: perl >= 5.6Requires: perl >= 5.6, sambaPrefix: %{_prefix}BuildArch: noarch%descriptionSmbldap-tools is a set of perl scripts designed to manage user and group accounts stored in an LDAP directory. They can be used both by users and administrators of Linux systems: . administrators can perform users and groups management operations, in a way similar to the standard useradd or groupmod commands. users can change their LDAP password from the command lineThese scripts are developed and maintained by IDEALX for the Samba project.Scripts are described in the Smbldap-tools User Manual(http://samba.idealx.org/smbldap-tools.en.html) which also give commandline examples.You can download the latest version on IDEALX web site(http://samba.idealx.org/dist/).Comments and/or questions can be sent to the smbldap-tools mailing list(http://lists.idealx.org/lists/samba).%prep%setup -q%buildsed -i "s,/etc/opt/IDEALX/smbldap-tools/,%{_sysconfdir}/smbldap-tools/,g" smbldap_tools.pmsed -i "s,/etc/opt/IDEALX/smbldap-tools/,%{_sysconfdir}/smbldap-tools/,g" configure.plsed -i "s,/etc/opt/IDEALX/,%{_sysconfdir}/,g" smbldap.conf%install%{__rm} -rf %{buildroot}#%makeinstall#mkdir -p $RPM_BUILD_ROOT/{etc/smbldap-tools,opt/IDEALX/sbin}mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/smbldap-toolsmkdir -p $RPM_BUILD_ROOT/%_prefix/sbin/for i in smbldap-*do install $i $RPM_BUILD_ROOT/%prefix/sbin/$idoneinstall configure.pl $RPM_BUILD_ROOT/%prefix/sbin/configure.plcp -a smbldap.conf smbldap_bind.conf $RPM_BUILD_ROOT/%{_sysconfdir}/smbldap-tools/cp -a smbldap_tools.pm $RPM_BUILD_ROOT/%{prefix}/sbinrm $RPM_BUILD_ROOT/%{prefix}/sbin/smbldap-tools.spec%cleanif [ -n "$RPM_BUILD_ROOT" ] ; then [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOTfi%prefiles=`ls %{_prefix}/sbin/smbldap*.pl 2>/dev/null`if [ "$files" != "" ];then echo "WARNING: new scripts do not have any .pl extension" echo " You need to update the smb.conf file"fi%post# from smbldap-tools-0.8-2, libraries are loaded with the FindBin perl packageif [ -f /usr/lib/perl5/site_perl/smbldap_tools.pm ];then rm -f /usr/lib/perl5/site_perl/smbldap_tools.pmfiif [ -f /usr/lib/perl5/site_perl/smbldap_conf.pm ];then rm -f /usr/lib/perl5/site_perl/smbldap_conf.pmfiif [ ! -n `grep with_slappasswd %{_sysconfdir}/smbldap-tools/smbldap.conf | grep -v "^#"` ];then echo "Check if you have the with_slappasswd parameter defined" echo "in smbldap.conf file (see the INSTALL file)"fi%files%defattr(-,root,root)%{prefix}/sbin/configure.pl%{prefix}/sbin/smbldap-groupadd%{prefix}/sbin/smbldap-groupdel%{prefix}/sbin/smbldap-groupmod%{prefix}/sbin/smbldap-groupshow%{prefix}/sbin/smbldap-passwd%{prefix}/sbin/smbldap-populate%{prefix}/sbin/smbldap-useradd%{prefix}/sbin/smbldap-userdel%{prefix}/sbin/smbldap-usermod%{prefix}/sbin/smbldap-userinfo%{prefix}/sbin/smbldap-usershow%{prefix}/sbin/smbldap_tools.pm%doc CONTRIBUTORS COPYING ChangeLog FILES INFRA README INSTALL TODO%doc smb.conf smbldap.conf smbldap_bind.conf%doc doc/smbldap-*%doc doc/html%defattr(644,root,root)%config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap.conf%defattr(600,root,root)%config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap_bind.conf%changelog* Fri Nov 28 2003 Jerome Tournier <jerome.tournier@idealx.com> 0.8.2-1- see Changelog file for updates in scripts
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -