]>
Commit | Line | Data |
---|---|---|
1fb6c59c AG |
1 | diff -burN adduser-ng.orig/Makefile adduser-ng/Makefile |
2 | --- adduser-ng.orig/Makefile 2003-11-09 23:10:00.000000000 +0100 | |
3 | +++ adduser-ng/Makefile 2004-03-22 15:15:26.884929264 +0100 | |
4 | @@ -4,8 +4,8 @@ | |
5 | ||
6 | PREFIX=/usr | |
7 | CONFIG_PREFIX= | |
8 | -USER_DOCS_DIR=$(PREFIX)/share/doc/adduser-ng | |
9 | -DEVEL_DOCS_DIR=$(PREFIX)/share/doc/adduser-ng | |
10 | +USER_DOCS_DIR=$(DESTDIR)$(PREFIX)/share/doc/adduser-ng | |
11 | +DEVEL_DOCS_DIR=$(DESTDIR)$(PREFIX)/share/doc/adduser-ng | |
12 | ||
13 | # if package will not be specified, use adduser-ng | |
14 | PACKAGE=adduser-ng | |
15 | @@ -35,107 +35,107 @@ | |
16 | install_adduser: build_adduser | |
17 | # | |
18 | # adduser-ng package installation | |
19 | - install -o root -g root -m 755 -d $(PREFIX)/sbin | |
20 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
21 | - install -o root -g root -m 755 -d $(CONFIG_PREFIX)/etc/adduser-ng | |
22 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser | |
23 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
24 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/UI | |
25 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
26 | - | |
27 | - install -o root -g root -m 755 adduser $(PREFIX)/sbin/adduser-ng | |
28 | - install -o root -g root -m 644 Docs/plugins/UserAdd.xml $(PREFIX)/share/adduser-ng/plugins/ | |
29 | - install -o root -g root -m 644 Docs/plugins/GroupAdd.xml $(PREFIX)/share/adduser-ng/plugins/ | |
30 | - install -o root -g root -m 644 Docs/plugins/PasswdUser.xml $(PREFIX)/share/adduser-ng/plugins/ | |
31 | - install -o root -g root -m 644 adduser-ng/adduser-ng.conf-dist $(CONFIG_PREFIX)/etc/adduser-ng/adduser-ng.conf | |
32 | + install -d $(DESTDIR)$(PREFIX)/sbin | |
33 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
34 | + install -d $(DESTDIR)$(CONFIG_PREFIX)/etc/adduser-ng | |
35 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser | |
36 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
37 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/UI | |
38 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
39 | + | |
40 | + install adduser $(DESTDIR)$(PREFIX)/sbin/adduser-ng | |
41 | + install Docs/plugins/UserAdd.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
42 | + install Docs/plugins/GroupAdd.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
43 | + install Docs/plugins/PasswdUser.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
44 | + install adduser-ng/adduser-ng.conf-dist $(DESTDIR)$(CONFIG_PREFIX)/etc/adduser-ng/adduser-ng.conf | |
45 | # plugins | |
46 | - install -o root -g root -m 644 lib/AddUser/StdLib.pm $(PREFIX)/share/perl5/AddUser/ | |
47 | - install -o root -g root -m 644 lib/AddUser/GroupConfig.pm $(PREFIX)/share/perl5/AddUser/ | |
48 | - install -o root -g root -m 644 lib/AddUser/plugins/UserAdd.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
49 | - install -o root -g root -m 644 lib/AddUser/plugins/GroupAdd.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
50 | - install -o root -g root -m 644 lib/AddUser/plugins/PasswdUser.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
51 | + install lib/AddUser/StdLib.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/ | |
52 | + install lib/AddUser/GroupConfig.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/ | |
53 | + install lib/AddUser/plugins/UserAdd.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
54 | + install lib/AddUser/plugins/GroupAdd.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
55 | + install lib/AddUser/plugins/PasswdUser.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
56 | # UI | |
57 | - install -o root -g root -m 644 lib/AddUser/UI/batch.pm $(PREFIX)/share/perl5/AddUser/UI/ | |
58 | - install -o root -g root -m 644 lib/AddUser/UI/readline.pm $(PREFIX)/share/perl5/AddUser/UI/ | |
59 | + install lib/AddUser/UI/batch.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/UI/ | |
60 | + install lib/AddUser/UI/readline.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/UI/ | |
61 | # documentation | |
62 | - xalan -IN Docs/plugins/UserAdd.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/UserAdd.html | |
63 | - xalan -IN Docs/plugins/GroupAdd.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/GroupAdd.html | |
64 | - xalan -IN Docs/plugins/PasswdUser.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/PasswdUser.html | |
65 | + #xalan -IN Docs/plugins/UserAdd.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/UserAdd.html | |
66 | + #xalan -IN Docs/plugins/GroupAdd.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/GroupAdd.html | |
67 | + #xalan -IN Docs/plugins/PasswdUser.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/PasswdUser.html | |
68 | ||
69 | generate_docs: | |
70 | scripts/generate_docs.sh all Docs/user_polish.xml Docs/ | |
71 | scripts/generate_docs.sh all Docs/developer_polish.xml Docs/ | |
72 | ||
73 | install_docs: | |
74 | - install -o root -g root -m 644 Docs/user_polish/* $(USER_DOCS_DIR) | |
75 | - install -o root -g root -m 644 Docs/developer_polish/* $(DEVEL_DOCS_DIR) | |
76 | + install Docs/user_polish/* $(USER_DOCS_DIR) | |
77 | + install Docs/developer_polish/* $(DEVEL_DOCS_DIR) | |
78 | ||
79 | install_pluginloader: | |
80 | # | |
81 | # libadduser-pluginloader | |
82 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser | |
83 | - install -o root -g root -m 644 lib/AddUser/PluginLoader.pm $(PREFIX)/share/perl5/AddUser/ | |
84 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser | |
85 | + install lib/AddUser/PluginLoader.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/ | |
86 | ||
87 | install_uicdk: | |
88 | # | |
89 | # adduser-ui-cdk | |
90 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/UI | |
91 | - install -o root -g root -m 644 lib/AddUser/UI/cdk.pm $(PREFIX)/share/perl5/AddUser/UI/ | |
92 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/UI | |
93 | + install lib/AddUser/UI/cdk.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/UI/ | |
94 | ||
95 | install_pluginquota: | |
96 | # | |
97 | # adduser-plugin-quota | |
98 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
99 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
100 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
101 | - | |
102 | - install -o root -g root -m 644 Docs/plugins/Quota.xml $(PREFIX)/share/adduser-ng/plugins/ | |
103 | - install -o root -g root -m 644 lib/AddUser/plugins/Quota.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
104 | - xalan -IN Docs/plugins/Quota.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/Quota.html | |
105 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
106 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
107 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
108 | + | |
109 | + install Docs/plugins/Quota.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
110 | + install lib/AddUser/plugins/Quota.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
111 | + #xalan -IN Docs/plugins/Quota.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/Quota.html | |
112 | ||
113 | install_pluginnotifyjabber: | |
114 | # | |
115 | # adduser-plugin-notifyjabber | |
116 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
117 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
118 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
119 | - | |
120 | - install -o root -g root -m 644 Docs/plugins/NotifyJabber.xml $(PREFIX)/share/adduser-ng/plugins/ | |
121 | - install -o root -g root -m 644 lib/AddUser/plugins/NotifyJabber.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
122 | - xalan -IN Docs/plugins/NotifyJabber.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/NotifyJabber.html | |
123 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
124 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
125 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
126 | + | |
127 | + install Docs/plugins/NotifyJabber.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
128 | + install lib/AddUser/plugins/NotifyJabber.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
129 | + #xalan -IN Docs/plugins/NotifyJabber.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/NotifyJabber.html | |
130 | ||
131 | install_plugincvsaccess: | |
132 | # | |
133 | # adduser-plugin-cvsaccess | |
134 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
135 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
136 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
137 | - | |
138 | - install -o root -g root -m 644 Docs/plugins/CVSAccess.xml $(PREFIX)/share/adduser-ng/plugins/ | |
139 | - install -o root -g root -m 644 lib/AddUser/plugins/CVSAccess.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
140 | - xalan -IN Docs/plugins/CVSAccess.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/CVSAccess.html | |
141 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
142 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
143 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
144 | + | |
145 | + install Docs/plugins/CVSAccess.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
146 | + install lib/AddUser/plugins/CVSAccess.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
147 | + #xalan -IN Docs/plugins/CVSAccess.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/CVSAccess.html | |
148 | ||
149 | install_plugineximconf: | |
150 | # | |
151 | # adduser-plugin-eximconf | |
152 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
153 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
154 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
155 | - | |
156 | - install -o root -g root -m 644 Docs/plugins/EximConf.xml $(PREFIX)/share/adduser-ng/plugins/ | |
157 | - install -o root -g root -m 644 lib/AddUser/plugins/EximConf.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
158 | - xalan -IN Docs/plugins/EximConf.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/EximConf.html | |
159 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
160 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
161 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
162 | + | |
163 | + install Docs/plugins/EximConf.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
164 | + install lib/AddUser/plugins/EximConf.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
165 | + #xalan -IN Docs/plugins/EximConf.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/EximConf.html | |
166 | ||
167 | install_plugineximconf4: | |
168 | # | |
169 | # adduser-plugin-eximconf4 | |
170 | - install -o root -g root -m 755 -d $(PREFIX)/share/adduser-ng/plugins | |
171 | - install -o root -g root -m 755 -d $(PREFIX)/share/perl5/AddUser/plugins | |
172 | - install -o root -g root -m 755 -d $(PREFIX)/share/doc/$(PACKAGE) | |
173 | - | |
174 | - install -o root -g root -m 644 Docs/plugins/EximConf4.xml $(PREFIX)/share/adduser-ng/plugins/ | |
175 | - install -o root -g root -m 644 lib/AddUser/plugins/EximConf4.pm $(PREFIX)/share/perl5/AddUser/plugins/ | |
176 | - xalan -IN Docs/plugins/EximConf4.xml -XSL Docs/plugins-to-html.xsl -OUT $(PREFIX)/share/doc/$(PACKAGE)/EximConf.html | |
177 | + install -d $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins | |
178 | + install -d $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins | |
179 | + install -d $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE) | |
180 | + | |
181 | + install Docs/plugins/EximConf4.xml $(DESTDIR)$(PREFIX)/share/adduser-ng/plugins/ | |
182 | + install lib/AddUser/plugins/EximConf4.pm $(DESTDIR)$(PREFIX)/share/perl5/AddUser/plugins/ | |
183 | + #xalan -IN Docs/plugins/EximConf4.xml -XSL Docs/plugins-to-html.xsl -OUT $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)/EximConf.html | |
184 | ||
185 | install_all_plugins: install_pluginloader install_uicdk install_pluginquota install_plugineximconf install_plugineximconf4 install_pluginnotifyjabber | |
186 |