ALT Linux repositórios
Group :: Sistema/Kernel e hardware
RPM: chntpw
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
#define prefix /opt/drbl
#define sbindir %prefix/sbin
Summary: Offline NT password and registry editor
Name: chntpw
Version: 040818
Release: alt1
License: Check COPYING.txt for more details.
Group: System/Kernel and hardware
Patch0: Chris_Macaulay.patch.gz
Url: http://home.eunet.no/~pnordahl/ntpasswd/
Packager: Mikhail Pokidko <pma at altlinux.org>
Source: chntpw-source-%version.zip
# Automatically added by buildreq on Tue Jan 16 2007
BuildRequires: libssl-devel-static unzip
%description
chntpw is a utility to (re)set the password of any user that has a valid
(local) account on your NT system, by modifying the crypted password in
the registrys SAM file.
You do not need to know the old password to set a new one. It detects and
offers to unlock locked or disabled out user accounts!
It works offline, that is, you have to shutdown your computer and boot off
a floppydisk or CD. The bootdisk includes stuff to access NTFS partitions
and scripts to glue the whole thing together.
%prep
%setup -c
%patch0 -p1
%build
# Added by Steven Shiau to make it statically link.
perl -pi -e 's|(^[[:space:]]*CFLAGS=.*)|$1 -static|' Makefile
make CFLAGS+=-O2 %?_smp_mflags OSSLLIB="%_libdir"
%install
install -D -m0755 chntpw %buildroot%_sbindir/chntpw
#install -D -m0755 chntpw %buildroot/opt/drbl/sbin/drbl-chntpw
%files
%doc *.txt
%_sbindir/*
%changelog
…
Todas as alterações você pod ver aqui
#define sbindir %prefix/sbin
Summary: Offline NT password and registry editor
Name: chntpw
Version: 040818
Release: alt1
License: Check COPYING.txt for more details.
Group: System/Kernel and hardware
Patch0: Chris_Macaulay.patch.gz
Url: http://home.eunet.no/~pnordahl/ntpasswd/
Packager: Mikhail Pokidko <pma at altlinux.org>
Source: chntpw-source-%version.zip
# Automatically added by buildreq on Tue Jan 16 2007
BuildRequires: libssl-devel-static unzip
%description
chntpw is a utility to (re)set the password of any user that has a valid
(local) account on your NT system, by modifying the crypted password in
the registrys SAM file.
You do not need to know the old password to set a new one. It detects and
offers to unlock locked or disabled out user accounts!
It works offline, that is, you have to shutdown your computer and boot off
a floppydisk or CD. The bootdisk includes stuff to access NTFS partitions
and scripts to glue the whole thing together.
%prep
%setup -c
%patch0 -p1
%build
# Added by Steven Shiau to make it statically link.
perl -pi -e 's|(^[[:space:]]*CFLAGS=.*)|$1 -static|' Makefile
make CFLAGS+=-O2 %?_smp_mflags OSSLLIB="%_libdir"
%install
install -D -m0755 chntpw %buildroot%_sbindir/chntpw
#install -D -m0755 chntpw %buildroot/opt/drbl/sbin/drbl-chntpw
%files
%doc *.txt
%_sbindir/*
%changelog
…
Todas as alterações você pod ver aqui