info: passwd.spec -devel

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Pią, 18 Wrz 1998, 15:16:48 CEST


Hej,
	w attachu idzie spec do passwd, jak ktos chce to moze go przerobic
aby byl rowniez dla stable...

na gazie,

Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
-------------- następna część ---------
Summary: Set or update a password using PAM
Summary(pl): Ustawienie lub zmiana chasła z wykorzystaniem PAM
Name: passwd
Version: 0.55
Release: 1d
Copyright: GPL or BSD
Group: Base
Source: ftp://linux.kernel.org/pub/linux/libs/pam/pre/SimplePAMApps-%{version}.tar.gz
Source1: passwd.pamd
Patch: passwd.patch
Buildroot: /tmp/%{name}-%{version}-%{release}-root
Requires: pam >= 0.65
Summary(de): Einstellen oder Aktualisieren eines Paßworts mit PAM 
Summary(fr): Configure ou met ŕ jour un mot de passe en utilisant PAM
Summary(tr): PAM kullanarak parola verme veya deđiţtirme

%description
This password-changing program uses PAM (Pluggable Authentication
Modules) to set or change a password.  Like all PAM-capable applications,
it can be configured using a file in the /etc/pam.d/ directory.

%description -l pl
W pakiecie tym znajduje się passwd - program do ustawiania i zmiany hasła
użytkowników systemu Linux. Program ten korzysta z PAM (Pluggable 
Authentication Modules) podczas tych operacji. 

%description -l de
Dieses Paßwort-Änderungsprogramm benutzt PAMs (Pluggable Authentication
Modules) zum Einstellen oder Ändern eines Paßworts. Wie alle PAM-fähigen
Applikationen läßt es sich über eine Datei im Verzeichnis /etc/pam.d/
konfigurieren. 

%description -l fr
Ce programme de modification du mot de passe utilise PAM (Pluggable Authentication
Modules) pour configurer ou modifier un mot de passe. Comme toutes les applications
PAM-capables, il peut ętre configuré avec un fichier dans le répertoire /etc/pam.d/.

%description -l tr
Bu parola deđistirme programý bir parola vermek veya deđiţtirmak için PAM'ý
kullanýr. Bütün PAM uyumlu uygulamalarda olduđu gibi, /etc/pam.d/ dizini
içindeki bir dosyayý kullanarak ayarlanabilir.

%prep
%setup -q -n SimplePAMApps-0.55
%patch -p1 

%build
cd apps/passwd
gcc -DLINUX -ansi -D_POSIX_SOURCE -Wall \
    -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align \
    -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
    -Wnested-externs -Winline -Wshadow -pedantic -g -O7 -pipe \
    -DPAM_FAIL_DELAY_ON -fPIC -o passwd passwd.c -lpwdb -lpam \
    -lpam_misc -ldl 2>/dev/null 

%install
strip apps/passwd/passwd
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/{bin,man/man1}
install -d $RPM_BUILD_ROOT/etc/{pam.d,security}
install apps/passwd/passwd $RPM_BUILD_ROOT/usr/bin
install apps/passwd/passwd.1 $RPM_BUILD_ROOT/usr/man/man1
install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/passwd
touch $RPM_BUILD_ROOT/etc/security/passwd.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644, root, root, 755)
%doc README Copyright
%attr(640, root, root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/passwd
%attr(640, root, root) %ghost /etc/security/passwd.conf
%attr(4711, root, root) /usr/bin/passwd
%attr(644, root, man) /usr/man/man1/passwd.1

%changelog
* Fri Sep 18 1998 Wojtek Ślusarczyk <wojtek w shadow.eu.org>
[0.55-1d]
- updated to 0.55,
- translation modified for pl,
- macro %%{version} in Source,
- install -d instead mkdir -p,
- md5 support in passwd.pamd,
- moved buildroot to /tmp/%{name}-%{version}-%{release}-root
- macro %%{SOURCE1} in %install
- pam >= 0.65 in Requires,
- build from non root's account,
- added /etc/security/passwd.conf
- added %doc
- restricted files permissions,
- minor changes of the spec file.

* Thu Jul 23 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[0.50-13]
- build against glibc-2.1.

* Mon Apr 27 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr

* Fri Oct 31 1997 Cristian Gafton <gafton w redhat.com>
- added passwd.1 man page (stolen from SimpleApps-0.56 and modified)
- fixed the Url

* Thu Oct 02 1997 Michael K. Johnson <johnsonm w redhat.com>
- Change to follow new version of PAM standard for pam_strerror().
- BuildRoot

* Thu Jun 19 1997 Erik Troan <ewt w redhat.com>
- built against glibc

* Wed Apr 23 1997 Michael K. Johnson <johnsonm w redhat.com>
- Fix patch so that we actually USE the more intelligent getlogin() again.

* Tue Apr 22 1997 Michael K. Johnson <johnsonm w redhat.com>
- Don't default to migrating passwords to /etc/shadow

* Mon Apr 21 1997 Michael K. Johnson <johnsonm w redhat.com>
- Also link against pwdb to use its more intelligent getlogin().

* Tue Apr 15 1997 Michael K. Johnson <johnsonm w redhat.com>
- Change passwords even if getlogin() can't find the login name.

* Mon Mar 03 1997 Michael K. Johnson <johnsonm w redhat.com>
- Moved from pam.conf to pam.d


Więcej informacji o liście dyskusyjnej pld-devel-pl