summaryrefslogtreecommitdiff
path: root/examples/appliance/Makefile
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-09 04:02:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-09 04:02:31 +0000
commit225fae135a266331d38ee329d5a758ec6ea6ebd6 (patch)
tree63bdc253617896996adf2277e6fe440571a574eb /examples/appliance/Makefile
parentc33b0a6074d62ba028b5cd501e00394ad3acd9c5 (diff)
downloadsamba-225fae135a266331d38ee329d5a758ec6ea6ebd6.tar.gz
samba-225fae135a266331d38ee329d5a758ec6ea6ebd6.tar.bz2
samba-225fae135a266331d38ee329d5a758ec6ea6ebd6.zip
the beginnings of a description of how to setup a Samba appliance
(This used to be commit ec2b77e97d8beaee9d2352411da01b302d0875c3)
Diffstat (limited to 'examples/appliance/Makefile')
-rw-r--r--examples/appliance/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/examples/appliance/Makefile b/examples/appliance/Makefile
new file mode 100644
index 0000000000..d6f40801c8
--- /dev/null
+++ b/examples/appliance/Makefile
@@ -0,0 +1,54 @@
+# Samba appliance Makefile
+# use at your own risk!
+
+PREFIX=/usr/local/samba
+CONFIGOPTS=--with-pam --prefix=$(PREFIX)
+
+
+all: headb tngb
+
+config:
+ (cd head/source; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS))
+ (cd tng; CFLAGS="-Wall -g" ./configure $(CONFIGOPTS) --enable-shared=no)
+
+headb:
+ (cd head/source; make)
+
+tngb:
+ (cd tng; make bin/samedit bin/winbindd nsswitch)
+
+clean:
+ (cd head/source; make clean)
+ (cd tng; make clean)
+
+distclean:
+ (cd head/source; make clean; rm -f config.cache; rm -f Makefile)
+ (cd tng; make clean; rm -f config.cache; rm -f Makefile)
+
+install: installhead installtng
+
+installbin: installheadbin installtng
+
+installhead:
+ (cd head/source; make install)
+
+installheadbin:
+ (cd head/source; make installbin)
+
+installtng: tngb
+ (cd tng; \
+ rm -f $(PREFIX)/bin/samedit $(PREFIX)/bin/winbindd; \
+ cp bin/samedit bin/winbindd $(PREFIX)/bin; \
+ rm -f /lib/libnss_ntdom.so.2 /lib/security/pam_winbind.so; \
+ cp nsswitch/libnss_ntdom.so /lib/libnss_ntdom.so.2; \
+ cp nsswitch/pam_winbind.so /lib/security/)
+
+stop:
+ -killall winbindd smbd nmbd
+
+start:
+ $(PREFIX)/bin/smbd
+ $(PREFIX)/bin/nmbd
+ $(PREFIX)/bin/winbindd
+
+restart: stop start