aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier S. Pedro <javier@javispedro.com>2012-07-01 18:13:59 +0200
committerJavier S. Pedro <javier@javispedro.com>2012-07-01 18:13:59 +0200
commitdf8ff385c88ac61b2803262508739a699cec66f8 (patch)
treef003d6b9442037279009174e995ab36d8b38235b
parentc9a304c0a13b36dce7be38987c3433d8bc0b5ce0 (diff)
downloadrodisc-df8ff385c88ac61b2803262508739a699cec66f8.tar.gz
rodisc-df8ff385c88ac61b2803262508739a699cec66f8.zip
updating readme, executable name
-rw-r--r--.gitignore4
-rw-r--r--Makefile8
-rw-r--r--README.md29
3 files changed, 36 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 8df9393..0f00f50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,7 @@
*.lai
*.la
*.a
+
+# Final executables
+rodisc
+rodiscd
diff --git a/Makefile b/Makefile
index d09120d..37b2fd6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,18 @@
-CFLAGS?=-Wall
+CFLAGS?=-Wall -Os
RODISC_PKGCONFIG:=glib-2.0 gobject-2.0 gio-unix-2.0 libsoup-2.4 avahi-gobject
RODISC_CFLAGS:=$(shell pkg-config --cflags $(RODISC_PKGCONFIG))
RODISC_LIBS:=$(shell pkg-config --libs $(RODISC_PKGCONFIG))
-all: rodisc
+all: rodiscd
-rodisc: rodisc.o udisks.o udisks-device.o
+rodiscd: rodisc.o udisks.o udisks-device.o
$(CC) $(LDFLAGS) -o $@ $+ $(LIBS) $(RODISC_LIBS)
%.o: %.c
$(CC) $(RODISC_CFLAGS) $(CFLAGS) -o $@ -c $<
clean:
- rm -f *.o rodisc
+ rm -f *.o rodiscd
.PHONY: all clean
diff --git a/README.md b/README.md
index b95d844..1df7e2f 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,31 @@
rodisc
======
-Remote optical disc service \ No newline at end of file
+This very small and hacky daemon (done in ~2 hours) that will export all optical
+discs found in your Linux box (as detected by udisks) using the Apple DVD or CD
+Sharing protocol.
+
+Dependencies
+------------
+
+* GLib (recent, with GIO)
+* Avahi (avahi-gobject)
+* Libsoup
+* UDisks
+
+Usage
+-----
+
+For automatic mode just run the daemon.
+
+ ./rodiscd
+
+If you want to export image files in addition to your system's CD or DVD discs,
+add each image file as -f <path.img>:
+
+ ./rodiscd -f myimage.iso -f myimage2.iso
+
+Security
+--------
+
+Potentially a security nightmare -- open web server to everyone.