summaryrefslogtreecommitdiffstats
path: root/autologin.spec
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-03-20 12:01:32 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-03-20 12:01:32 -0400
commita44c5a9a86c54fbc0d82a15973c8f7d1eda584cb (patch)
tree904c2aee751b8ab9d19a25c3818d7c8e73b543d9 /autologin.spec
parentd339fae17b11e1bd9843d329abc477bc7d4bcab3 (diff)
downloadautologin-a44c5a9a86c54fbc0d82a15973c8f7d1eda584cb.tar.gz
autologin-a44c5a9a86c54fbc0d82a15973c8f7d1eda584cb.tar.xz
autologin-a44c5a9a86c54fbc0d82a15973c8f7d1eda584cb.zip
- start adding an archive target
Diffstat (limited to 'autologin.spec')
-rw-r--r--autologin.spec27
1 files changed, 12 insertions, 15 deletions
diff --git a/autologin.spec b/autologin.spec
index d770d73..52b47b2 100644
--- a/autologin.spec
+++ b/autologin.spec
@@ -1,14 +1,10 @@
-%define name autologin
-%define version 0.02
-%define release 1
-
Summary: Auto Login Utility
-Name: %{name}
-Version: %{version}
-Release: %{release}
+Name: autologin
+Version: 0.02
+Release: 1
License: GPLv2
Group: Security Violations
-Source: autologin.tar.gz
+Source: autologin-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@@ -17,17 +13,14 @@ it boots. This program is normally run from /etc/inittab replacing one of
your mingetty lines. This program is a huge security hole.
%prep
-%setup -n %{name}
+%setup
%build
make
%install
-
-mkdir -p $RPM_BUILD_ROOT/sbin/
-mkdir -p $RPM_BUILD_ROOT/usr/man/man8/
-install autologin $RPM_BUILD_ROOT/sbin/
-cat autologin.8 | gzip > $RPM_BUILD_ROOT/usr/man/man8/autologin.8.gz
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
@@ -36,8 +29,12 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%doc README TODO
%attr(711,root,root) /sbin/autologin
-/usr/man/man8/autologin.8.gz
+%{_mandir}/man8/autologin.8.gz
%changelog
+* Thu Mar 20 2008 Nalin Dahyabhai <nalin@redhat.com>
+- try to clean up reliance on some non-portable functions
+- set PAM's environment variables in the process environment
+
* Thu Mar 16 2000 Dale Lovelace <dale@redhat.com>
- First RPM build