fix cups compile on freebsd
authorFelix Fietkau <nbd@openwrt.org>
Sun, 15 Oct 2006 13:30:40 +0000 (13:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 15 Oct 2006 13:30:40 +0000 (13:30 +0000)
SVN-Revision: 5111

net/cups/Makefile
net/cups/patches/130-no_chown.patch [new file with mode: 0644]
net/cups/patches/140-uname.patch [new file with mode: 0644]

index b62b8e3ab4ad9f4ec14dcf5b744e6c6ecc2ee28c..3e51a83226f5486c4910fbe288f1fe4ac9bdf961 100644 (file)
@@ -43,19 +43,21 @@ define Package/cups/conffiles
 endef
 
 define Build/Configure
-$(call Build/Configure/Default, --with-gnu-ld \
---with-cups-user=root \
---with-cups-group=root \
---without-perl \
---without-python \
---without-php \
---disable-slp \
---disable-gnutls \
---disable-openssl \
---disable-cdsassl \
---disable-ssl \
---disable-slp \
-)
+       $(call Build/Configure/Default, --with-gnu-ld \
+               --with-cups-user=root \
+               --with-cups-group=root \
+               --without-perl \
+               --without-python \
+               --without-php \
+               --enable-shared \
+               --disable-slp \
+               --disable-gnutls \
+               --disable-openssl \
+               --disable-cdsassl \
+               --disable-ssl \
+               --disable-slp, \
+               UNAME="Linux" \
+       )
 endef
 
 define Build/Compile
@@ -65,6 +67,10 @@ define Build/Compile
                DSTROOT="$(PKG_INSTALL_DIR)" \
                STRIP="/bin/true" \
                all install
+       if [ -d $(PKG_INSTALL_DIR)/usr/libexec ]; then \
+               rm -rf $(PKG_INSTALL_DIR)/usr/lib; \
+               mv $(PKG_INSTALL_DIR)/usr/libexec $(PKG_INSTALL_DIR)/usr/lib; \
+       fi
 endef
 
 define Package/cups/install
@@ -91,9 +97,6 @@ define Package/cups/install
        # install initscript with priority 60
        install -d -m0755 $(1)/etc/init.d
        install -m0755 ./files/cupsd.init $(1)/etc/init.d/S60cupsd
-       find $(1) -name CVS | xargs rm -rf
-       $(RSTRIP) $(1)
-       $(IPKG_BUILD) $(1) $(PACKAGE_DIR)
 endef
 
 define Build/InstallDev
diff --git a/net/cups/patches/130-no_chown.patch b/net/cups/patches/130-no_chown.patch
new file mode 100644 (file)
index 0000000..5fb27f9
--- /dev/null
@@ -0,0 +1,11 @@
+--- cups-1.1.23/systemv/Makefile.old   Sun Oct 15 03:33:34 2006
++++ cups-1.1.23/systemv/Makefile       Sun Oct 15 03:33:55 2006
+@@ -77,7 +77,7 @@
+       $(INSTALL_BIN) lp $(BINDIR)
+       $(INSTALL_BIN) lpoptions $(BINDIR)
+       $(INSTALL_BIN) lpstat $(BINDIR)
+-      -$(INSTALL_BIN) -m 4755 -o $(CUPS_USER) -g $(CUPS_GROUP) lppasswd $(BINDIR)
++      -$(INSTALL_BIN) lppasswd $(BINDIR)
+       if test ! -x $(BINDIR)/lppasswd; then \
+               chmod 755 $(BINDIR)/lppasswd; \
+       fi
diff --git a/net/cups/patches/140-uname.patch b/net/cups/patches/140-uname.patch
new file mode 100644 (file)
index 0000000..cea261e
--- /dev/null
@@ -0,0 +1,11 @@
+--- cups.dev/configure Sun Oct 15 15:22:17 2006
++++ cups.old/configure Sun Oct 15 15:21:40 2006
+@@ -1300,7 +1300,7 @@
+-uname=`uname`
++uname=${UNAME:-`uname`}
+ uversion=`uname -r | sed -e '1,$s/[^0-9]//g'`
+ case "$uname" in
+       GNU* | GNU/*)