Commit 4ee7b252 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

parents
Loading
Loading
Loading
Loading

9780596004613

0 → 120000
+1 −0
Changes for 9780596004613: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
9780596004613
 No newline at end of file

LSHcode.tgz

0 → 100755
+14.7 KiB

File added.

No diff preview for this file type.

+23 −0
Changes for LinuxServerHacks-code/ch01/Makefile.mail: 23 added lines, 0 removed lines.
Original line number Diff line number Diff line
M4=	m4
CFDIR=	/usr/src/sendmail-8.12.5/cf
CHMOD=	chmod
ROMODE=	444
RM=	rm -f

.SUFFIXES:  .mc .cf

all:    virtusers.db aliases.db access.db 

access.db: access.txt
	makemap -v hash access < access.txt

aliases.db: aliases
	newaliases

virtusers.db: virtusers.txt
	makemap -v hash virtusers < virtusers.txt

.mc.cf:
	$(RM) $@
	$(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@ || ( $(RM) $@ && exit 1 )
	$(CHMOD) $(ROMODE) $@
+28 −0
Changes for LinuxServerHacks-code/ch01/Makefile.push: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
#
# Makefile to push *.conf to the slave, as needed.
#
SLAVE= www2.oreillynet.com
APACHE= /usr/local/apache
RM= /bin/rm
TOUCH= /bin/touch
SSH= /usr/local/bin/ssh
SCP= /usr/local/bin/scp

.SUFFIXES:	.conf .ts

all:	test restart sites.ts globals.ts httpd.ts

configtest:	test

test:
	@echo -n "Testing Apache configuration: "
	@$(APACHE)/bin/apachectl configtest

restart:
	$(APACHE)/bin/apachectl restart

.conf.ts:
	@$(RM) -f $@
	@$(SCP) $*.conf $(SLAVE):$(APACHE)/conf
	@$(SSH) $(SLAVE) $(APACHE)/bin/apachectl restart
	@$(TOUCH) $@
+11 −0
Changes for LinuxServerHacks-code/ch01/albumize: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/sh
if [ -z "$ALBUM" ]; then
echo 'You must set the ALBUM name first (eg. export ALBUM="Greatest Hits")'
exit 1
fi
for x in *; do
echo -n $x; echo -ne '\000'
echo -n `echo $x|cut -f 1 -d '-'`
echo -n " - $ALBUM - "
echo -n `echo $x|cut -f 2- -d '-'`; echo -ne '\000'
done | xargs -0 -n2 mv
Loading