diff options
author | Javier S. Pedro <javier@javispedro.com> | 2012-07-01 18:13:59 +0200 |
---|---|---|
committer | Javier S. Pedro <javier@javispedro.com> | 2012-07-01 18:13:59 +0200 |
commit | df8ff385c88ac61b2803262508739a699cec66f8 (patch) | |
tree | f003d6b9442037279009174e995ab36d8b38235b | |
parent | c9a304c0a13b36dce7be38987c3433d8bc0b5ce0 (diff) | |
download | rodisc-df8ff385c88ac61b2803262508739a699cec66f8.tar.gz rodisc-df8ff385c88ac61b2803262508739a699cec66f8.zip |
updating readme, executable name
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | README.md | 29 |
3 files changed, 36 insertions, 5 deletions
@@ -10,3 +10,7 @@ *.lai *.la *.a + +# Final executables +rodisc +rodiscd @@ -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 @@ -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. |