/[smeserver]/smeserver-sshkeys/F/smeserver-sshkeys-0.9.spec
ViewVC logotype

Annotation of /smeserver-sshkeys/F/smeserver-sshkeys-0.9.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Fri Feb 2 02:11:33 2007 UTC (17 years, 9 months ago) by slords
Branch: MAIN
Changes since 1.2: +1 -1 lines
Thu Feb  1 19:11:26 2007                                        slords

Change Copyright to License
----------------------------------------------------------------------

1 charliebrady 1.1 Summary: SME Server panel to add sshkeys for users.
2     %define name smeserver-sshkeys
3     Name: %{name}
4     %define version 0.9
5     %define release 2
6     Version: %{version}
7 slords 1.2 Release: %smerelease %{release}
8     Packager: %{_packager}
9 charliebrady 1.1 Distribution: SME Server
10 slords 1.3 License: GPL
11 charliebrady 1.1 URL: http://www.dungog.net/sme
12     Group: SMEserver/addon
13     Source: %{name}-%{version}.tar.gz
14     BuildArchitectures: noarch
15     BuildRoot: /var/tmp/%{name}-%{version}
16     Requires: e-smith-base, e-smith-release >= 7.0,
17     AutoReqProv: no
18    
19     %description
20     SME Server panel to add sshkeys for users.
21     Optionally provides a user-manager panel where users can
22     add sshkeys for themselves
23    
24     %changelog
25 slords 1.2 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
26     - Update to new release naming. No functional changes.
27     - Make Packager generic
28    
29 charliebrady 1.1 * Wed Dec 14 2005 Stephen Noble <support@dungog.net>
30     - mkdir ~/.ssh, chown to $user
31     - [0.9-2]
32    
33     * Mon Dec 12 2005 Stephen Noble <support@dungog.net>
34     - contains sshkeys & userpanel-sshkeys
35     - initial release
36     - [0.9-1]
37    
38     %prep
39     %setup
40    
41     %build
42     perl createlinks
43    
44     %install
45     rm -rf $RPM_BUILD_ROOT
46     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
47     rm -f %{name}-%{version}-filelist
48     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
49     echo "%doc COPYING" >> %{name}-%{version}-filelist
50    
51     %clean
52     cd ..
53     rm -rf %{name}-%{version}
54    
55     %pre
56     %preun
57    
58     %post
59     #new installs
60     if [ $1 = 1 ] ; then
61    
62     DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
63     for db in $DBS ; do
64     r=`/sbin/e-smith/db $db get userpanel-sshkeys 2>/dev/null`
65     if [ -z "$r" ] ; then
66     /sbin/e-smith/db $db set userpanel-sshkeys panel Description "Ssh keys" DescriptionWeight 600 Heading "Your Settings" HeadingWeight 100 2>/dev/null
67     fi
68     r=`/sbin/e-smith/db $db get sshkeys 2>/dev/null`
69     if [ -z "$r" ] ; then
70     /sbin/e-smith/db $db set sshkeys panel Description "User ssh keys" DescriptionWeight 3170 Heading "Security" HeadingWeight 3000 2>/dev/null
71     fi
72     done
73    
74     fi
75    
76     #upgrades (and new installs)
77     #/sbin/e-smith/signal-event conf-userpanel
78    
79     %postun
80     #uninstall
81     if [ $1 = 0 ] ; then
82    
83     DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
84     for db in $DBS ; do
85     /sbin/e-smith/db $db delete userpanel-sshkeys 2>/dev/null
86     /sbin/e-smith/db $db delete sshkeys 2>/dev/null
87     done
88     fi
89    
90     %files -f %{name}-%{version}-filelist
91     %defattr(-,root,root)
92    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed