-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMigrationTools.spec
55 lines (41 loc) · 1.23 KB
/
MigrationTools.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Summary: Migration scripts for LDAP
Name: MigrationTools
Version: 44
Release: 3ru
Source: ftp://ftp.padl.com/pub/%{name}-%{version}.tar.gz
Source1: migrate-ex.tar.gz
URL: http://www.padl.com/
Copyright: BSD
Group: Networking/Utilities
BuildRoot: %{_tmppath}/rpm-%{name}-root
Prefix: /usr/local
#Requires: openldap?
Requires: perl
%description
The MigrationTools are a set of Perl scripts for migrating users, groups,
aliases, hosts, netgroups, networks, protocols, RPCs, and services from
existing nameservices (flat files, NIS, and NetInfo) to LDAP.
%prep
%setup
%setup -T -D -b 1
export RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/%{name}
%setup
%build
%install
mv ../migrate* ./ # blame ebede for making tar that explodes in cwd
cp -a migrate_* $RPM_BUILD_ROOT/usr/local/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
echo You may want to modify the config files migrate_common.ph and
echo migrate_all_online.sh in /usr/local/MigrationTools. Example files
echo exist in the same directory.
%files
%defattr(-, root, bin)
/usr/local/%{name}
%config(noreplace) /usr/local/%{name}/migrate_common.ph
%config(noreplace) /usr/local/%{name}/migrate_all_online.sh
%doc README