summaryrefslogtreecommitdiff
path: root/openwrt/package/shfs/patches/102-utils-build-fixes.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-09 02:28:00 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-04-09 02:28:00 +0000
commitbbe718534f63fcffe145409867ce22eacbd3734e (patch)
treecd7388574206c1ac09dc8ebecc44d50d326056dd /openwrt/package/shfs/patches/102-utils-build-fixes.patch
parent6853fd49731f052cc51d970aca251059a7b0d0df (diff)
Add shfs package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@593 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/shfs/patches/102-utils-build-fixes.patch')
-rw-r--r--openwrt/package/shfs/patches/102-utils-build-fixes.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/openwrt/package/shfs/patches/102-utils-build-fixes.patch b/openwrt/package/shfs/patches/102-utils-build-fixes.patch
new file mode 100644
index 0000000000..affce43570
--- /dev/null
+++ b/openwrt/package/shfs/patches/102-utils-build-fixes.patch
@@ -0,0 +1,40 @@
+--- shfs-0.35-orig/shfsmount/Makefile 2004-06-01 15:16:19.000000000 +0200
++++ shfs-0.35-2/shfsmount/Makefile 2005-04-09 01:27:22.000000000 +0200
+@@ -2,15 +2,16 @@
+ SHFS_VERSION=unknown
+ endif
+
+-SHFSMOUNT := /usr/bin/shfsmount
+-SHFSUMOUNT := /usr/bin/shfsumount
++SHFSMOUNT := /usr/sbin/shfsmount
++SHFSUMOUNT := /usr/sbin/shfsumount
+
+ ALL_TARGETS := shfsmount shfsumount
+
+ SEARCHDIRS := -I- -I. -I../shfs/Linux-2.4/
+
+ CC := gcc
+-CFLAGS = -g -Wall ${SEARCHDIRS} -DSHFS_VERSION=\"${SHFS_VERSION}\"
++OFLAGS = -g
++CFLAGS = $(OFLAGS) -Wall ${SEARCHDIRS} -DSHFS_VERSION=\"${SHFS_VERSION}\"
+
+ LINKER := gcc
+ LDFLAGS =
+@@ -40,12 +41,12 @@
+
+
+ install: shfsmount shfsumount
+- install -m755 -b -D shfsmount ${ROOT}${SHFSMOUNT}
+- install -m755 -b -D shfsumount ${ROOT}${SHFSUMOUNT}
+- if [ ! -d ${ROOT}/sbin ]; then mkdir ${ROOT}/sbin; fi
+- ln -fs ${SHFSMOUNT} ${ROOT}/sbin/mount.shfs
++ install -m755 -D shfsmount ${ROOT}${SHFSMOUNT}
++ install -m755 -D shfsumount ${ROOT}${SHFSUMOUNT}
++ if [ ! -d ${ROOT}/usr/sbin ]; then mkdir ${ROOT}/usr/sbin; fi
++ ln -fs ${SHFSMOUNT} ${ROOT}/usr/sbin/mount.shfs
+
+ uninstall:
+- rm -f ${ROOT}${SHFSMOUNT} ${ROOT}${SHFSUMOUNT} ${ROOT}/sbin/mount.shfs
++ rm -f ${ROOT}${SHFSMOUNT} ${ROOT}${SHFSUMOUNT} ${ROOT}/usr/sbin/mount.shfs
+
+ .PHONY : all tidy clean install uninstall