From df8ff385c88ac61b2803262508739a699cec66f8 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 1 Jul 2012 18:13:59 +0200 Subject: updating readme, executable name --- .gitignore | 4 ++++ Makefile | 8 ++++---- README.md | 29 ++++++++++++++++++++++++++++- 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 : + + ./rodiscd -f myimage.iso -f myimage2.iso + +Security +-------- + +Potentially a security nightmare -- open web server to everyone. -- cgit v1.2.3