-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a4c20ce
Showing
5 changed files
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin/ |
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,14 @@ | ||
BINDIR := bin | ||
SRCDIR := src | ||
TARGETS := $(patsubst $(SRCDIR)/%.sh,$(BINDIR)/%,$(wildcard $(SRCDIR)/*.sh)) | ||
|
||
all: $(TARGETS) | ||
|
||
$(BINDIR)/%: $(SRCDIR)/%.sh | ||
mkdir -p $(BINDIR) | ||
docker run -it -v `pwd`/$(SRCDIR):/src -v `pwd`/$(BINDIR):/out alpine /bin/ash -c '/src/$(<F) && cp /usr/local/sbin/xinetd /out/$(@F)' | ||
|
||
clean: | ||
rm -rf $(BINDIR) | ||
|
||
.PHONY: all clean |
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,6 @@ | ||
# xinetd-musl | ||
Standalone xinetd binaries for use in Alpine containers | ||
|
||
## Requirements | ||
- make | ||
- docker |
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,18 @@ | ||
#!/bin/ash | ||
|
||
apk add --update build-base git linux-headers bsd-compat-headers | ||
|
||
wget https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.2.6/libtirpc-1.2.6.tar.bz2 | ||
tar xvjf libtirpc*.tar.bz2 | ||
cd libtirpc* | ||
./configure --enable-static --disable-gssapi | ||
make | ||
make install | ||
cd .. | ||
|
||
git clone https://github.com/xinetd-org/xinetd | ||
cd xinetd | ||
CFLAGS="-s -I/usr/include/tirpc" CPPFLAGS="-DHAVE_RLIM_T" ./configure | ||
LDFLAGS="-Wl,-Bstatic -ltirpc -Wl,-Bdynamic" make | ||
make install | ||
cd .. |
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,18 @@ | ||
#!/bin/ash | ||
|
||
apk add --update build-base git linux-headers bsd-compat-headers | ||
|
||
wget https://downloads.sourceforge.net/project/libtirpc/libtirpc/1.2.6/libtirpc-1.2.6.tar.bz2 | ||
tar xvjf libtirpc*.tar.bz2 | ||
cd libtirpc* | ||
./configure --enable-static --disable-gssapi | ||
make | ||
make install | ||
cd .. | ||
|
||
git clone https://github.com/xinetd-org/xinetd | ||
cd xinetd | ||
CFLAGS="-s -static -I/usr/include/tirpc" CPPFLAGS="-DHAVE_RLIM_T" ./configure | ||
LDFLAGS="-ltirpc" make | ||
make install | ||
cd .. |