diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-25 08:33:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-25 08:33:49 +0000 |
commit | 2cd0cbd0c13401274dce58d3e122d6c8bd1b07f1 (patch) | |
tree | 3daf30c1fe91400efd9b57556aac6954aaf99a24 | |
parent | 287f715835edeadad581fbbf76f2dc974c1cfc4c (diff) | |
download | alpine-baselayout-2cd0cbd0c13401274dce58d3e122d6c8bd1b07f1.tar.gz alpine-baselayout-2cd0cbd0c13401274dce58d3e122d6c8bd1b07f1.tar.bz2 alpine-baselayout-2cd0cbd0c13401274dce58d3e122d6c8bd1b07f1.tar.xz |
do not generate TZ, hosts, hostname and profilealpine-baselayout-2.0_alpha4
-rw-r--r-- | Makefile | 44 | ||||
-rw-r--r-- | hostname | 1 | ||||
-rw-r--r-- | profile | 4 |
3 files changed, 27 insertions, 22 deletions
@@ -5,10 +5,25 @@ PV =$(PACKAGE)-$(VERSION) TARBALL =$(PV).tar.bz2 SUBDIRS =src init.d -GENERATED_FILES =TZ hosts profile -ETC_FILES =$(GENERATED_FILES) group fstab inittab nsswitch.conf \ - passwd protocols services shadow shells issue mdev.conf \ - crontab sysctl.conf +GENERATED_FILES := shadow + +ETC_FILES = TZ \ + crontab \ + fstab \ + group \ + hostname \ + hosts \ + inittab \ + issue \ + mdev.conf \ + nsswitch.conf \ + passwd \ + profile \ + protocols \ + services \ + shells \ + sysctl.conf \ + CONFD_FILES = $(addprefix conf.d/, cron hwclock localinit rdate syslog tuntap vlan watchdog) SBIN_FILES =runscript-alpine.sh functions.sh rc_add rc_delete rc_status RC_SH_FILES =rc-services.sh @@ -22,7 +37,7 @@ DISTFILES =$(ETC_FILES) $(SBIN_FILES) $(UDHCPC_FILES) $(RC_SH_FILES)\ all: $(GENERATED_FILES) for i in $(SUBDIRS) ; do \ - cd $$i && make && cd .. ; \ + cd $$i && $(MAKE) && cd .. ; \ done clean: @@ -31,21 +46,6 @@ clean: done rm -f $(TARBALL) $(GENERATED_FILES) *~ -TZ: - echo "UTC" > TZ - -hostname: - echo localhost > hostname - -hosts: - echo "127.0.0.1 localhost" > hosts - -profile: - echo "export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" > $@ - echo "export PAGER=less" >> $@ - echo "export PS1='\\h:\\w\\$$ '" >>$@ - echo "umask 022" >> $@ - shadow: passwd @lastchange=$$(( `date +%s` / ( 24 * 3600 ) ));\ awk -F: ' { \ @@ -54,7 +54,7 @@ shadow: passwd print $$1 pw "'"$$lastchange"':0:::::" \ }' passwd > $@ -install: +install: $(GENERATED_FILES) install -m 0755 -d $(addprefix $(DESTDIR)/, \ dev \ dev/pts \ @@ -104,7 +104,7 @@ install: for i in $(SUBDIRS) ; do \ cd $$i && make install && cd .. ;\ done - install -m 0644 $(ETC_FILES) $(DESTDIR)/etc + install -m 0644 $(ETC_FILES) $(GENERATED_FILES) $(DESTDIR)/etc install -m 0644 $(SENDBUG_FILES) $(DESTDIR)/etc/sendbug chmod 600 $(DESTDIR)/etc/shadow install -m 0644 $(CONFD_FILES) $(DESTDIR)/etc/conf.d diff --git a/hostname b/hostname new file mode 100644 index 0000000..2fbb50c --- /dev/null +++ b/hostname @@ -0,0 +1 @@ +localhost @@ -0,0 +1,4 @@ +export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin +export PAGER=less +export PS1='\h:\w\$ ' +umask 022 |