-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removing sed and HEREDOC hell - Using FEATURES var from Makefile
- Loading branch information
Showing
6 changed files
with
88 additions
and
88 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 |
---|---|---|
|
@@ -16,12 +16,17 @@ RUN cvs -d :pserver:[email protected]:/cvs -z9 co libowfat ; \ | |
|
||
# http://erdgeist.org/arts/software/opentracker/#build-instructions | ||
RUN cd /usr/src/opentracker ; \ | ||
%%MAKEFILE_SED_EXPRESSIONS%% \ | ||
# Build opentracker statically to use it in scratch image | ||
LDFLAGS=-static make ; \ | ||
LDFLAGS=-static make \ | ||
%%MAKEFILE_FEATURES%% ;\ | ||
bash -c 'mkdir -pv /tmp/stage/{etc/opentracker,bin}' ; \ | ||
bash -c 'touch /tmp/stage/etc/opentracker/{white,black}list' ; \ | ||
cp -v opentracker.conf.sample /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
%%OPENTRACKER_CONF_SED_EXPRESSIONS%% \ | ||
# Opentrack configuration file | ||
sed -ri \ | ||
-e 's!(.*)(tracker.user)(.*)!\2 farmhand!g;' \ | ||
%%OPENTRACKER_CONFS%% \ | ||
/tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
install -m 755 opentracker.debug /tmp/stage/bin ; \ | ||
make DESTDIR=/tmp/stage BINDIR="/bin" install | ||
|
||
|
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 |
---|---|---|
|
@@ -21,20 +21,23 @@ RUN cvs -d :pserver:[email protected]:/cvs -z9 co libowfat ; \ | |
|
||
# http://erdgeist.org/arts/software/opentracker/#build-instructions | ||
RUN cd /usr/src/opentracker ; \ | ||
# Makefile blacklist sed expressions | ||
sed -ri -e '\ | ||
/^#.*DWANT_ACCESSLIST_BLACK/s/^#//; \ | ||
' Makefile ; \ | ||
# Build opentracker statically to use it in scratch image | ||
LDFLAGS=-static make ; \ | ||
LDFLAGS=-static make \ | ||
FEATURES+=-DWANT_FULLSCRAPE \ | ||
FEATURES+=-DWANT_FULLLOG_NETWORKS \ | ||
FEATURES+=-DWANT_LOG_NUMWANT \ | ||
FEATURES+=-DWANT_MODEST_FULLSCRAPES \ | ||
FEATURES+=-DWANT_SPOT_WOODPECKER \ | ||
FEATURES+=-DWANT_ACCESSLIST_BLACK \ | ||
;\ | ||
bash -c 'mkdir -pv /tmp/stage/{etc/opentracker,bin}' ; \ | ||
bash -c 'touch /tmp/stage/etc/opentracker/{white,black}list' ; \ | ||
cp -v opentracker.conf.sample /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
# Opentrack conf blacklist sed expressions | ||
sed -ri -e '\ | ||
s!(.*)(tracker.user)(.*)!\2 farmhand!g; \ | ||
s!(.*)(access.blacklist)(.*)!\2 /etc/opentracker/blacklist!g; \ | ||
' /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
touch /tmp/stage/etc/opentracker/blacklist ; \ | ||
# Opentrack configuration file | ||
sed -ri \ | ||
-e 's!(.*)(tracker.user)(.*)!\2 farmhand!g;' \ | ||
-e 's!(.*)(access.blacklist)(.*)!\2 /etc/opentracker/blacklist!g;' \ | ||
/tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
install -m 755 opentracker.debug /tmp/stage/bin ; \ | ||
make DESTDIR=/tmp/stage BINDIR="/bin" install | ||
|
||
|
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 |
---|---|---|
|
@@ -21,15 +21,22 @@ RUN cvs -d :pserver:[email protected]:/cvs -z9 co libowfat ; \ | |
|
||
# http://erdgeist.org/arts/software/opentracker/#build-instructions | ||
RUN cd /usr/src/opentracker ; \ | ||
# No need to change Makefile to open mode | ||
# Build opentracker statically to use it in scratch image | ||
LDFLAGS=-static make ; \ | ||
LDFLAGS=-static make \ | ||
FEATURES+=-DWANT_FULLSCRAPE \ | ||
FEATURES+=-DWANT_FULLLOG_NETWORKS \ | ||
FEATURES+=-DWANT_LOG_NUMWANT \ | ||
FEATURES+=-DWANT_MODEST_FULLSCRAPES \ | ||
FEATURES+=-DWANT_SPOT_WOODPECKER \ | ||
;\ | ||
bash -c 'mkdir -pv /tmp/stage/{etc/opentracker,bin}' ; \ | ||
bash -c 'touch /tmp/stage/etc/opentracker/{white,black}list' ; \ | ||
cp -v opentracker.conf.sample /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
# Opentrack conf whitelist sed expressions | ||
sed -ri -e '\ | ||
s!(.*)(tracker.user)(.*)!\2 farmhand!g; \ | ||
' /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
# Opentrack configuration file | ||
sed -ri \ | ||
-e 's!(.*)(tracker.user)(.*)!\2 farmhand!g;' \ | ||
\ | ||
/tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
install -m 755 opentracker.debug /tmp/stage/bin ; \ | ||
make DESTDIR=/tmp/stage BINDIR="/bin" install | ||
|
||
|
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 |
---|---|---|
|
@@ -21,20 +21,23 @@ RUN cvs -d :pserver:[email protected]:/cvs -z9 co libowfat ; \ | |
|
||
# http://erdgeist.org/arts/software/opentracker/#build-instructions | ||
RUN cd /usr/src/opentracker ; \ | ||
# Makefile whitelist sed expressions | ||
sed -ri -e '\ | ||
/^#.*DWANT_ACCESSLIST_WHITE/s/^#//; \ | ||
' Makefile ; \ | ||
# Build opentracker statically to use it in scratch image | ||
LDFLAGS=-static make ; \ | ||
LDFLAGS=-static make \ | ||
FEATURES+=-DWANT_FULLSCRAPE \ | ||
FEATURES+=-DWANT_FULLLOG_NETWORKS \ | ||
FEATURES+=-DWANT_LOG_NUMWANT \ | ||
FEATURES+=-DWANT_MODEST_FULLSCRAPES \ | ||
FEATURES+=-DWANT_SPOT_WOODPECKER \ | ||
FEATURES+=-DWANT_ACCESSLIST_WHITE \ | ||
;\ | ||
bash -c 'mkdir -pv /tmp/stage/{etc/opentracker,bin}' ; \ | ||
bash -c 'touch /tmp/stage/etc/opentracker/{white,black}list' ; \ | ||
cp -v opentracker.conf.sample /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
# Opentrack conf whitelist sed expressions | ||
sed -ri -e '\ | ||
s!(.*)(tracker.user)(.*)!\2 farmhand!g; \ | ||
s!(.*)(access.whitelist)(.*)!\2 /etc/opentracker/whitelist!g; \ | ||
' /tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
touch /tmp/stage/etc/opentracker/whitelist ; \ | ||
# Opentrack configuration file | ||
sed -ri \ | ||
-e 's!(.*)(tracker.user)(.*)!\2 farmhand!g;' \ | ||
-e 's!(.*)(access.whitelist)(.*)!\2 /etc/opentracker/whitelist!g;' \ | ||
/tmp/stage/etc/opentracker/opentracker.conf ; \ | ||
install -m 755 opentracker.debug /tmp/stage/bin ; \ | ||
make DESTDIR=/tmp/stage BINDIR="/bin" install | ||
|
||
|