Skip to content

Commit 5dd58c5

Browse files
author
Michael Jennings
committed
Wed Jan 25 15:40:58 2012 Michael Jennings (mej)
Convert to autoconf/automake for build. ----------------------------------------------------------------------
1 parent 3481b0c commit 5dd58c5

File tree

6 files changed

+65
-13
lines changed

6 files changed

+65
-13
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,7 @@ Output onlining/offlining of nodes to log (with timestamp).
170170

171171
Log failure of health check to logfile as well as syslog.
172172
----------------------------------------------------------------------
173+
Wed Jan 25 15:40:58 2012 Michael Jennings (mej)
174+
175+
Convert to autoconf/automake for build.
176+
----------------------------------------------------------------------

Makefile.am

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# $Id$
2+
3+
AUTOMAKE_OPTIONS = foreign
4+
5+
helperdir = $(libexecdir)/nhc
6+
confdir = $(sysconfdir)/nhc
7+
8+
dist_sbin_SCRIPTS = nhc
9+
dist_conf_DATA = nhc.conf
10+
nobase_dist_conf_DATA = scripts/common.nhc scripts/ww_fs.nhc \
11+
scripts/ww_hw.nhc scripts/ww_job.nhc scripts/ww_ps.nhc
12+
dist_helper_SCRIPTS = helpers/node-mark-online helpers/node-mark-offline
13+
14+
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure install-sh missing
15+
DISTCLEANFILES =
16+
CLEANFILES =
17+
EXTRA_DIST = ChangeLog autogen.sh warewulf-nhc.spec

autogen.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
if autoreconf -V >/dev/null 2>&1 ; then
4+
set -x
5+
autoreconf -f -i
6+
else
7+
set -x
8+
aclocal
9+
autoconf
10+
automake -ca -Wno-portability
11+
fi
12+
13+
if [ -z "$NO_CONFIGURE" ]; then
14+
./configure $@
15+
fi
16+

configure.in

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dnl# $Id$
2+
3+
AC_PREREQ(2.59)
4+
AC_INIT([warewulf-nhc], [1.1.3], [warewulf-devel@lbl.gov])
5+
AC_CONFIG_SRCDIR([.])
6+
7+
AC_PROG_INSTALL
8+
AM_INIT_AUTOMAKE([foreign])
9+
10+
AC_OUTPUT([
11+
Makefile
12+
warewulf-nhc.spec
13+
])

prod.mezz

-1
This file was deleted.

warewulf-nhc.spec renamed to warewulf-nhc.spec.in

+15-12
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
%{!?nhc_helper_dir:%global nhc_helper_dir %{_libexecdir}/%{sname}}
66

77
Summary: Warewulf Node Health Check System
8-
Name: warewulf-%{sname}
9-
Version: 1.1.3
10-
Release: %{_rel}
8+
Name: @PACKAGE@
9+
Version: @VERSION@
10+
#Release: %{_rel}
11+
Release: 1
1112
License: BSD
1213
Group: Applications/System
1314
URL: http://warewulf.lbl.gov/
14-
Source: %{name}.tar.gz
15+
Source: %{name}-%{version}.tar.gz
1516
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@lbl.gov>}
1617
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:Warewulf Project (http://warewulf.lbl.gov/)}
1718
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
@@ -30,22 +31,24 @@ contained in this package provide a flexible, extensible mechanism for
3031
collecting health checks to be run on your cluster and specifying
3132
which checks should be run on which nodes.
3233

34+
3335
%prep
34-
%setup -n %{name} -T -c -a 0
36+
%setup
37+
38+
39+
%build
40+
%{configure}
41+
%{__make} %{?mflags}
42+
3543

3644
%install
37-
%{__mkdir_p} $RPM_BUILD_ROOT%{_sbindir} $RPM_BUILD_ROOT%{_sysconfdir}/%{sname}
38-
%{__mkdir_p} $RPM_BUILD_ROOT%{nhc_script_dir} $RPM_BUILD_ROOT%{nhc_helper_dir}
45+
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
3946

40-
%{__install} -m 0755 nhc $RPM_BUILD_ROOT%{_sbindir}/%{sname}
41-
#%{__install} -m 0755 nhc-run $RPM_BUILD_ROOT%{_sbindir}/
42-
%{__install} -m 0644 nhc.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{sname}/%{sname}.conf
43-
%{__install} -m 0644 scripts/* $RPM_BUILD_ROOT%{nhc_script_dir}/
44-
%{__install} -m 0755 helpers/* $RPM_BUILD_ROOT%{nhc_helper_dir}/
4547

4648
%clean
4749
test "$RPM_BUILD_ROOT" != "/" && %{__rm} -rf $RPM_BUILD_ROOT
4850

51+
4952
%files
5053
%defattr(-, root, root)
5154
%dir %{_sysconfdir}/%{sname}/

0 commit comments

Comments
 (0)