Group :: Ferramentas de texto
RPM: apg
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: apg
Version: 2.2.3
Release: alt3
License: BSD
Summary: Automated password generator
Summary(ru_RU.KOI8-R): á×ÔÏÍÁÔÉÞÅÓËÉÊ ÇÅÎÅÒÁÔÏÒ ÐÁÒÏÌÅÊ
Group: Text tools
URL: http://www.adel.nursat.kz/apg/
Packager: Denis Ovsienko <pilot at altlinux.ru>
Source0: http://www.adel.nursat.kz/apg/download/%{name}-%{version}.tar.gz
Source1: %{name}.xinetd
Patch0: %{name}-makefile.patch
%description
* Built-in ANSI X9.17 RNG (Random Number Generator)(CAST/SHA1)
* Built-in password strength checking system (support for Bloom filter for faster access)
* Two password generation algorithms:
1. pronounceable password generation algorithm (according to NIST FIPS 181)
2. random character password generation algorithm with 35 configurable modes of operation
* Configurable password length
* Configurable passwords amount
* Ability to initialize RNG with user string
* /dev/random support
* Ability to crypt() generated passwords and print crypted value as additional output
* Special parameters to call APG from shell scripts
%prep
%setup
%patch0
%build
%make_build -e all
%install
INSTALL_PREFIX=%{buildroot} APG_BIN_DIR=%_bindir APG_MAN_DIR=%_man1dir APGD_BIN_DIR=%_sbindir \
APGD_MAN_DIR=%_man8dir %make_install -e install
install -D %SOURCE1 %{buildroot}/%{_sysconfdir}/xinetd.d/%{name}d
%files
%_bindir/%{name}
%_bindir/%{name}bfm
%_man1dir/*
%doc CHANGES INSTALL README THANKS TODO
%package daemon
Requires: %{name} xinetd service
# pwdgen entry
Requires: setup >= 2.2.3-alt1
Group: System/Servers
Summary: Automated password generator daemon
Summary(ru_RU.KOI8-R): äÅÍÏÎ Á×ÔÏÍÁÔÉÞÅÓËÏÊ ÇÅÎÅÒÁÃÉÉ ÐÁÒÏÌÅÊ
%description daemon
* Ability to log password generation requests for network version
* Password Generator Protocol (RFC972) support
* Ability to enforce remote users to use only allowed password generation method
%files daemon
%_sbindir/%{name}d
%_man8dir/*
%config(noreplace) %attr(0640, root, root) %_sysconfdir/xinetd.d/%{name}d
%pre daemon
[ "$1" -eq 1 ] && useradd -c "APG daemon" -r -d /dev/null -s /dev/null apgd
%post daemon
[ "$1" -eq 1 ] && service xinetd condreload
%postun daemon
if [ "$1" -eq 0 ]; then
service xinetd condreload
userdel apgd
fi
%changelog
…
Todas as alterações você pod ver aqui
Version: 2.2.3
Release: alt3
License: BSD
Summary: Automated password generator
Summary(ru_RU.KOI8-R): á×ÔÏÍÁÔÉÞÅÓËÉÊ ÇÅÎÅÒÁÔÏÒ ÐÁÒÏÌÅÊ
Group: Text tools
URL: http://www.adel.nursat.kz/apg/
Packager: Denis Ovsienko <pilot at altlinux.ru>
Source0: http://www.adel.nursat.kz/apg/download/%{name}-%{version}.tar.gz
Source1: %{name}.xinetd
Patch0: %{name}-makefile.patch
%description
* Built-in ANSI X9.17 RNG (Random Number Generator)(CAST/SHA1)
* Built-in password strength checking system (support for Bloom filter for faster access)
* Two password generation algorithms:
1. pronounceable password generation algorithm (according to NIST FIPS 181)
2. random character password generation algorithm with 35 configurable modes of operation
* Configurable password length
* Configurable passwords amount
* Ability to initialize RNG with user string
* /dev/random support
* Ability to crypt() generated passwords and print crypted value as additional output
* Special parameters to call APG from shell scripts
%prep
%setup
%patch0
%build
%make_build -e all
%install
INSTALL_PREFIX=%{buildroot} APG_BIN_DIR=%_bindir APG_MAN_DIR=%_man1dir APGD_BIN_DIR=%_sbindir \
APGD_MAN_DIR=%_man8dir %make_install -e install
install -D %SOURCE1 %{buildroot}/%{_sysconfdir}/xinetd.d/%{name}d
%files
%_bindir/%{name}
%_bindir/%{name}bfm
%_man1dir/*
%doc CHANGES INSTALL README THANKS TODO
%package daemon
Requires: %{name} xinetd service
# pwdgen entry
Requires: setup >= 2.2.3-alt1
Group: System/Servers
Summary: Automated password generator daemon
Summary(ru_RU.KOI8-R): äÅÍÏÎ Á×ÔÏÍÁÔÉÞÅÓËÏÊ ÇÅÎÅÒÁÃÉÉ ÐÁÒÏÌÅÊ
%description daemon
* Ability to log password generation requests for network version
* Password Generator Protocol (RFC972) support
* Ability to enforce remote users to use only allowed password generation method
%files daemon
%_sbindir/%{name}d
%_man8dir/*
%config(noreplace) %attr(0640, root, root) %_sysconfdir/xinetd.d/%{name}d
%pre daemon
[ "$1" -eq 1 ] && useradd -c "APG daemon" -r -d /dev/null -s /dev/null apgd
%post daemon
[ "$1" -eq 1 ] && service xinetd condreload
%postun daemon
if [ "$1" -eq 0 ]; then
service xinetd condreload
userdel apgd
fi
%changelog
…
Todas as alterações você pod ver aqui