forked from chaos/diod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up build system and integrate npfs. Add make rpm target.
- Loading branch information
Showing
129 changed files
with
694 additions
and
14,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
SUBDIRS = liblsd npfs common diod diodctl diodmount man scripts test | ||
SUBDIRS = liblsd libnpfs libdiod diod diodctl diodmount man scripts test | ||
|
||
rpmdirs: | ||
mkdir -p $(top_builddir)/rpm/SPECS | ||
mkdir -p $(top_builddir)/rpm/SOURCES | ||
mkdir -p $(top_builddir)/rpm/BUILD | ||
mkdir -p $(top_builddir)/rpm/RPMS | ||
mkdir -p $(top_builddir)/rpm/SRPMS | ||
|
||
rpm: dist rpmdirs | ||
rpmbuild -ta --define "_topdir $(realpath $(top_builddir)/rpm)" $(DIST_ARCHIVES) | ||
|
||
EXTRA_DIST = META diod.spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Name: @META_NAME@ | ||
Version: @META_VERSION@ | ||
Release: @META_RELEASE@ | ||
|
||
Summary: I/O forwarding server for 9P. | ||
License: GPL | ||
Group: Applications/System | ||
# URL: http://sourceforge.net/projects/npfs | ||
Source0: %{name}-%{version}.tar.gz | ||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
# tcp_wrappers-devel on rhel6 | ||
BuildRequires: tcp_wrappers | ||
BuildRequires: zlib-devel | ||
BuildRequires: lua-devel | ||
BuildRequires: munge-devel | ||
|
||
%description | ||
diod is a 9P server used in combination with the kernel v9fs file | ||
system for I/O forwarding on Linux clusters. | ||
|
||
%prep | ||
%setup -q | ||
|
||
%build | ||
%configure | ||
make | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
mkdir -p $RPM_BUILD_ROOT | ||
make install DESTDIR=$RPM_BUILD_ROOT | ||
|
||
%clean | ||
rm -rf ${RPM_BUILD_ROOT} | ||
|
||
# %post | ||
# if [ -x /sbin/chkconfig ]; then /sbin/chkconfig --add diodctl; fi | ||
|
||
# %preun | ||
# if [ "$1" = 0 ]; then | ||
# %{_sysconfdir}/init.d/diodctl stop >/dev/null 2>&1 || : | ||
# if [ -x /sbin/chkconfig ]; then /sbin/chkconfig --del diodctl; fi | ||
# fi | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%doc AUTHORS COPYING README INSTALL ChangeLog | ||
%{_sbindir}/* | ||
%{_mandir}/man8/* | ||
%{_mandir}/man5/* | ||
%attr(0755,root,root) %{_sysconfdir}/init.d/diodctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
AM_CFLAGS = @GCCWARN@ | ||
|
||
AM_CPPFLAGS = \ | ||
-I../npfs/include -I../liblsd -I../common | ||
-I../libnpfs -I../liblsd -I../libdiod | ||
|
||
sbin_PROGRAMS = diod | ||
|
||
diod_LDADD = \ | ||
$(top_builddir)/common/libdiod.a \ | ||
$(top_builddir)/npfs/libnpfs/libnpfs.a \ | ||
$(top_builddir)/libdiod/libdiod.a \ | ||
$(top_builddir)/libnpfs/libnpfs.a \ | ||
$(top_builddir)/liblsd/liblsd.a \ | ||
$(LIBWRAP) $(LIBPTHREAD) $(LIBZ) $(LIBLUA) $(LIBMUNGE) | ||
|
||
diod_SOURCES = \ | ||
diod.c \ | ||
ops.c | ||
ops.c \ | ||
ops.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
AM_CFLAGS = @GCCWARN@ | ||
|
||
AM_CPPFLAGS = \ | ||
-I../npfs/include -I../liblsd -I../common | ||
-I../libnpfs -I../liblsd -I../libdiod | ||
|
||
sbin_PROGRAMS = diodctl | ||
|
||
diodctl_LDADD = \ | ||
$(top_builddir)/common/libdiod.a \ | ||
$(top_builddir)/npfs/libnpfs/libnpfs.a \ | ||
$(top_builddir)/libdiod/libdiod.a \ | ||
$(top_builddir)/libnpfs/libnpfs.a \ | ||
$(top_builddir)/liblsd/liblsd.a \ | ||
$(LIBWRAP) $(LIBPTHREAD) $(LIBZ) $(LIBLUA) $(LIBMUNGE) | ||
|
||
diodctl_SOURCES = \ | ||
diodctl.c \ | ||
ops.c \ | ||
serv.c | ||
ops.h \ | ||
serv.c \ | ||
serv.h | ||
|
Oops, something went wrong.