From 2df8230e07e4dceb303c14bb65d41ba8256059d9 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 15 Oct 2002 20:05:36 +0000 Subject: [PATCH] Mandrake packaging updates from Buchan & Sly --- packaging/Mandrake/samba-print-pdf.sh | 2 +- packaging/Mandrake/samba2.spec.tmpl | 55 +++++++++++++++++++++++++++++------ packaging/Mandrake/smb.conf | 10 +++++-- 3 files changed, 55 insertions(+), 12 deletions(-) diff --git a/packaging/Mandrake/samba-print-pdf.sh b/packaging/Mandrake/samba-print-pdf.sh index 5c744f0a83d..3d88f9fb885 100644 --- a/packaging/Mandrake/samba-print-pdf.sh +++ b/packaging/Mandrake/samba-print-pdf.sh @@ -33,7 +33,7 @@ fi WIN_OUTPUT="$3\\`basename $OUTPUT`" # create the PDF: -$PS2PDF $OPTOINS $INPUT $OUTPUT.pdf >/dev/null 2>&1 +$PS2PDF $OPTIONS $INPUT $OUTPUT.pdf >/dev/null 2>&1 # Generate a message to send to the user, and deal with the original file: MESSAGE=$(echo "Your PDF file has been created as $WIN_OUTPUT.pdf\n") diff --git a/packaging/Mandrake/samba2.spec.tmpl b/packaging/Mandrake/samba2.spec.tmpl index 42bb495cbc3..f7d8131b98d 100644 --- a/packaging/Mandrake/samba2.spec.tmpl +++ b/packaging/Mandrake/samba2.spec.tmpl @@ -1,5 +1,5 @@ %define ver 2.2.5 -%define rel 17mdk +%define rel 21mdk %define vscanver 0.2.5c # 2.2.4 and 1 replace by samba-team at release @@ -13,11 +13,11 @@ %define have_pversion %(if [ "%pversion" = `echo "pversion" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi) %define have_prelease %(if [ "%prelease" = `echo "prelease" |tr '[:lower:]' '[:upper:]'` ];then echo 0; else echo 1; fi) -# We might have a prerelease: -%define have_pre %(echo %pversion|awk '{p=0} /pre/ {p=1} {print p}') +# We might have a alpha-/beta-/pre-/rc-release: +%define have_pre %(echo %pversion|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1} {print p}') %if %have_pre -%define pre_ver %(echo %pversion|sed -e 's/pre[0-9]//') -%define pre_pre %(echo %pversion|sed -e 's/[0-9].[0-9].[0-9]//') +%define pre_ver %(perl -e '$name="%pversion"; print ($name =~ /(.*?)[a-z]/);') +%define pre_pre %(echo %pversion|sed -e 's/%pre_ver//g') %endif @@ -155,7 +155,7 @@ Source3: samba.xinetd Source4: swat_48.xpm.bz2 Source5: swat_32.xpm.bz2 Source6: swat_16.xpm.bz2 -Source7: README.samba-%{version}-%{release} +Source7: README.%{name}-mandrake-rpm %if %build_vscan Source8: samba-vscan-%{vscanver}.tar.bz2 %endif @@ -178,9 +178,16 @@ Patch32: samba-2.2.5-winbind-init.patch.bz2 Patch33: samba-2.2.5-pam-password.patch.bz2 Patch34: samba-2.2.5-win2k_copy_bug.patch.bz2 Patch35: samba-2.2.5-samba-ldap-include-conf.patch.bz2 +Patch36: samba-2.2.6-smb.conf.patch.bz2 +Patch37: samba-2.2.6-smbumount_lazy.patch.bz2 %else # Version specific patches: upcoming version %endif +# Limbo patches (applied to prereleases, but not preleases, ie destined for +# samba CVS) +%if %have_pversion && %have_pre +Patch36: samba-2.2.6-smb.conf.patch.bz2 +%endif Requires: pam >= 0.64, samba-common = %{version} BuildRequires: pam-devel autoconf readline-devel %if %build_acl @@ -229,7 +236,7 @@ docs directory for implementation details. %if %build_non_default WARNING: This RPM was built with command-line options. Please -see README.samba-%{version}-%{release} in the documentation for +see README.%{name}-mandrake-rpm in the documentation for more information. %endif @@ -505,8 +512,10 @@ echo "$RPM_EXTRA_OPTIONS" echo "This rpm was built with non-default options, thus, to build ">%{SOURCE7} echo "an identical rpm, you need to supply the following options">>%{SOURCE7} echo "at build time: $RPM_EXTRA_OPTIONS">>%{SOURCE7} +echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7} %else echo "This rpm was built with default options">%{SOURCE7} +echo -e "\n%{name}-%{version}-%{release}\n">>%{SOURCE7} %endif %if %build_vscan @@ -522,7 +531,6 @@ echo "This rpm was built with default options">%{SOURCE7} %patch12 -p1 -b .buildroot %patch17 -p1 %patch18 -p1 -b .gp-reloc-fix - # Version specific patches: current version %if !%have_pversion echo "Applying patches for current version: %{ver}" @@ -535,11 +543,19 @@ echo "Applying patches for current version: %{ver}" %patch33 -p1 %patch34 -p1 %patch35 -p1 +%patch36 -p1 +%patch37 -p1 %else # Version specific patches: upcoming version echo "Applying patches for new versions: %{pversion}" %endif +# Limbo patches +%if %have_pversion && %have_pre +echo "Appling patches which should only be applied to prereleases" +%patch36 -p1 +%endif + cp %{SOURCE7} . # Make a copy of examples so that we have a clean one for doc: @@ -1121,7 +1137,7 @@ fi %defattr(-,root,root) %doc README COPYING Manifest Read-Manifest-Now %doc WHATSNEW.txt Roadmap -%doc README.samba-%{version}-%{release} +%doc README.%{name}-mandrake-rpm %doc docs %doc examples %doc swat/README @@ -1282,6 +1298,27 @@ fi %endif %changelog +* Thu Oct 10 2002 Buchan Milne 2.2.5-21mdk +- Put docs back (aka rpm sucks, builds cleanly when doc fails) +- 2.2.6-1.0.rc2.3mdk + +* Thu Oct 10 2002 Buchan Milne 2.2.5-20mdk +- Fix typo in print-pdf script +- Make spec resistant to arbitrary pre/alpha/rc/beta/iamnotfinishedyet strings + in version +- Stop filling CVS with READMEs (use README.samba-mandrake-rpm instead) +- Make example profiles share writeable by default, and add auto-creation + example (smb.conf) +- Make ps printing example remove printed files by default (smb.conf) +- Fix ntlogon example (smb.conf) + +* Thu Oct 10 2002 Sylvestre Taburet 2.2.5-19mdk +- almost 2.26 (rc2)! + +* Mon Oct 07 2002 Sylvestre Taburet 2.2.5-18mdk +- add lazy umount patch for smbumount to allow smbumount to handle + broken connection. (36) (-- ) + * Thu Sep 05 2002 Sylvestre Taburet 2.2.5-17mdk - changed localhost entry in /etc/xinetd.d/swat to 127.0.0.1 for resolving issue. diff --git a/packaging/Mandrake/smb.conf b/packaging/Mandrake/smb.conf index f68d48cb4b3..c450490bb0c 100644 --- a/packaging/Mandrake/smb.conf +++ b/packaging/Mandrake/smb.conf @@ -324,7 +324,7 @@ #Uncomment the following 2 lines if you would like your login scripts to #be created dynamically by ntlogon (check that you have it in the correct #location (the default of the ntlogon rpm available in contribs) -;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon +;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon/ ;root postexec = rm -f /var/lib/samba/netlogon/%U.bat # Un-comment the following to provide a specific roving profile share @@ -333,6 +333,12 @@ ; path = /var/lib/samba/profiles ; browseable = no ; guest ok = yes +; writable = yes +# This script can be enabled to create profile directories on the fly +# You may want to turn off guest acces if you enable this, as it +# hasn't been thoroughly tested. +; root preexec = PROFILE=/var/lib/samba/profiles/%u; if [ ! -e $PROFILE ]; \ +; then mkdir -pm700 $PROFILE; chown %u $PROFILE;fi # NOTE: If you have a CUPS print system there is no need to @@ -355,7 +361,7 @@ # print command: see above for details. # ===================================== print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. -; print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients). +; print command = lpr-cups -P %p %s -r # using cups own drivers (use generic PostScript on clients). # The following two commands are the samba defaults for printing=cups # change them only if you need different options: ; lpq command = lpq -P %p -- 2.11.4.GIT