LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-08-2016, 09:53 AM   #31
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129

Quote:
Originally Posted by kjhambrick View Post
vonbiber --

Just noticed one thing.

The Package Names have an extra '-' char in the VERSION.
Thank you for catching that.
My second sed command was wrong. Fixed it. Now it reads
Code:
VERSION=$(echo ${CUPSarchive%.i386.rpm} | sed 's?^hll2300dcupswrapper-??'| \
  sed 's?-\([0-9]\{1,\}\)$?_\1?')
Regarding the permissions of the last directory in /var/spool/...
Here's what I have on one of my systems (14.1 64-bit):
Code:
ls -l /var/spool/
...
drwx--x--- 3 root   lp     4096 Jul 18 10:45 cups
drwxr-xr-x 3 root   root   4096 Mar  4  2015 lpd
I wonder if I should set for lpd the same ownership/permissions as cups
Code:
ls -l /var/spool/lpd
drw-r--r-- 2 root root 4096 May 14  2014 BrGenML1
In /var/spool/cups there's a tmp directory that is
Code:
drwxrwx--T 2 root lp 4096 Sep  6 11:33 tmp
I wonder if /var/spool/lpd/BrGenML1 (or DCP7030, etc.) should have the same permissions?
 
Old 09-08-2016, 10:14 AM   #32
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
vonbiber --

Quote:
I wonder if I should set for lpd the same ownership/permissions as cups?
Maybe so and also notice the group = lp ?

-- kjh

Last edited by kjhambrick; 09-08-2016 at 11:04 AM. Reason: spelling
 
Old 09-08-2016, 02:35 PM   #33
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by kjhambrick View Post
vonbiber --
also notice the group = lp ?
-- kjh
Yes, I did
I think instead of copying var and its sufolders, I'll do something like this
Code:
#cp -a var $PKG

mkdir -p $PKG/install

cat > $PKG/install/doinst.sh <<EOS
if [ ! -e /var/spool/lpd ]
  mkdir /var/spool/lpd
  chgrp --reference=/var/spool/cups -R /var/spool/lpd
  chmod --reference=/var/spool/cups -R /var/spool/lpd
fi

mkdir -p /var/spool/lpd/DCP7030
chgrp --reference=/var/spool/cups/tmp -R /var/spool/lpd/DCP7030
chmod --reference=/var/spool/cups/tmp -R /var/spool/lpd/DCP7030
EOS
#####endofLPR
 
1 members found this post helpful.
Old 09-09-2016, 07:22 AM   #34
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Nice vonbiber !

I learned another new one !

I didn't know about the --reference=RFILE flag for GNU chmod / chown / chgrp ( man chmod ; man chown ; man chgrp )

I'll be using that one occasionally on Linux Boxes with GNU Tools.

Thanks again.

-- kjh
 
Old 09-09-2016, 09:15 AM   #35
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
@vonbiber, thank you for the script. I haven't used it yet, since Slackbuilds is new to me, I have been downloading all the info I can find regarding software installation.
I have downloaded Slack Docs, The Slack wiki, Slackware essentials plus all the how to articles and tutorials from the Slackbuild site.
I am going to print all the relevant portions so I have a reference when I start (won't have to rely on memory.)
If you or anyone else is aware of any additional tutorials and how-to's from sources other than the ones
I mentioned, please let me know. More information is always helpful as someone may include advice that
others have omitted.
 
Old 09-09-2016, 09:44 AM   #36
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by offgridguy View Post
@vonbiber, thank you for the script. I haven't used it yet, since Slackbuilds is new to me, I have been downloading all the info I can find regarding software installation.
I have downloaded Slack Docs, The Slack wiki, Slackware essentials plus all the how to articles and tutorials from the Slackbuild site.
I am going to print all the relevant portions so I have a reference when I start (won't have to rely on memory.)
If you or anyone else is aware of any additional tutorials and how-to's from sources other than the ones
I mentioned, please let me know. More information is always helpful as someone may include advice that
others have omitted.
I just uploaded the latest version of the script. Please download this one.

Below are the steps to set up your printer.
Steps 1, 2, and 3: you must do this as root
1. Build the package
Code:
chmod +x brotherdcp7030.SlackBuild
./brotherdcp7030.SlackBuild
If all goes well, you should see this file in your current directory: brotherdcp7030-2.0.2_1-i386-1_vbi.txz

Before you install the package make sure, in case you're running a 64-bit system,
that you have these 3 packages installed:

Code:
ls /var/log/packages/cups*compat32* /var/log/packages/glibc-solibs-*multilib* 2>/dev/null
This should return something like:
Code:
/var/log/packages/cups-filters-compat32-1.5.4-x86_64-2compat32.txz
/var/log/packages/cups-compat32-1.5.4-x86_64-4_slack14.1compat32
/var/log/packages/glibc-solibs-2.17_multilib-x86_64-10alien
If not, see the note in x86readme.txt

2. Install the package:
Code:
installpkg brotherdcp7030-2.0.2_1-i386-1_vbi.txz
3. Make sure that cups is running
Code:
chmod +x /etc/rc.d/rc.cups
/etc/rc.d/rc.cups restart
Next, open a web browser and go to this address: http://localhost:631
Click on 'Adding Printers and Classes' (under CUPS for Administrators)
You'll be prompted for the root password.
Hopefully you should see your printer model in the list ...

Let me know how it went

Good luck!

Last edited by vonbiber; 09-09-2016 at 11:58 AM. Reason: forgot to mention compat32
 
2 members found this post helpful.
Old 09-10-2016, 05:07 AM   #37
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
vonbiber --

Just now downloaded your latest brotherdcp7030.SlackBuild and rebuilt brotherdcp7030-2.0.2_1-i386-1_vbi.txz

I checked the content of the Package.tgz file and the doinst.sh script.

It looks great !

The x86_64readme.txt file is very clear -- this package is 32-bit-only and x86_64readme.txt tells me exactly what I would need to do to be able to run on a pure-64-bit Slackware Machine.

Everything in the package seems to be in the correct directory and the install/doinst.sh script oughta work as expected.

Thanks for the new SlackBuild. It's a keeper !


offgridguy --

In addition to vonbiber's recommendations, this is how I approach new SlackBuilds ...

I think you've mentioned all the off-site info I know about.

One more thing you might want to look at on your Slackware Machine is: man makepkg

Lot's of tasty tidbits in there straight from the horse's mouth ( volkerdi ).

Another thing I LOVE about Slackware is that volkerdi's Package Management tools are Shell Scripts !

One can browse his *pkg scripts to see how they work ( and learn some handy scripting tricks too )

Moreover, the Package DataBase on Slackware is a set of text files in /var/log/packages/

If you've ever hosed your YUM DataBase on a RHEL, CentOS, or Fedora Box, you'll REALLY appreciate the text file DataBase on Slackware !!!

Another nice thing about SlackBuilds is that ALMOST ALL of them are non-destructive ( vonbiber's SlackBuild is non-destructive ).

IOW, you won't affect your machine by simply running vonbiber's brotherdcp7030.SlackBuild Script as long as you've got enough disk space.

There are exceptions to the ALMOST ALL rule.

Be careful with taking SlackBuilds from unknown sources.

Look at the SlackBuild Script before you run it !

If you can't inspect the SlackBuild Script ( say it is compiled or otherwise obfusticated ), then don't run it on your System unless you KNOW for sure what it does !

As a rule, if you stick to official Slackware SlackBuilds and SlackBuilds from SlackBuilds.org, you'll be OK.

Once you've got a Package, you can look inside the .t?z file with a simple tar -tvf command ( see below[1] ).

Many, if not most Packages will include an install/doinst.sh script which I often check before I run installpkg on the new Package ( see below[2] )

Once you've verified the contents of the Package and maybe looked at the doinst.sh script, installation can be as simple as installpkg <<PkgName>> or upgradepkg --install-new <<PkgName>>

If you use one of the advanced Package Managers like slackpkg I am not sure how to proceed ...

I am a luddite when it comes to my Package Management ( I only use volkerdi's tools ) so I don't know how the advanced systems work with non-standard Packages.

Maybe others can help with that ...

HTH.

-- kjh

#
# below[1] - these are the contents of vonbiber's brotherdcp7030-2.0.2_1-i386-1_vbi.txz Package
#
# note that `tar -tvf` simply lists the contents of a tar file
#
Code:
tar -tvf brotherdcp7030-2.0.2_1-i386-1_vbi.txz
Code:
drwxr-xr-x root/root         0 2016-09-10 03:29 ./
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/bin/
-rwxr-xr-x root/root     26313 2016-09-10 03:29 usr/bin/brprintconflsr2
-rwxr-xr-x root/root       191 2016-09-10 03:29 usr/bin/brprintconfiglpr2
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/Brother/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/Brother/cupswrapper/
-rwxr-xr-x root/root     17552 2016-09-10 03:29 usr/share/Brother/cupswrapper/brcupsconfig3
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/Brother/inf/
-rw-r--r-- root/root       166 2016-09-10 03:29 usr/share/Brother/inf/brDCP7030rc
-rw-r--r-- root/root       215 2016-09-10 03:29 usr/share/Brother/inf/paperinf
-rwxr-xr-x root/root      1623 2016-09-10 03:29 usr/share/Brother/inf/setupPrintcap
-rw-r--r-- root/root       652 2016-09-10 03:29 usr/share/Brother/inf/brDCP7030func
-rwxr-xr-x root/root      7976 2016-09-10 03:29 usr/share/Brother/inf/braddprinter
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/Brother/lpd/
-rwxr-xr-x root/root      3150 2016-09-10 03:29 usr/share/Brother/lpd/psconvert2
-rwxr-xr-x root/root      7909 2016-09-10 03:29 usr/share/Brother/lpd/filterDCP7030
-rwxr-xr-x root/root     20186 2016-09-10 03:29 usr/share/Brother/lpd/rawtobr2
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/cups/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/share/cups/model/
-rwxr-xr-x root/root     10265 2016-09-10 03:29 usr/share/cups/model/DCP7030.ppd
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/doc/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/doc/brotherdcp7030/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/doc/brotherdcp7030/SlackBuild/
-rw-r--r-- root/root      5101 2016-09-10 03:29 usr/doc/brotherdcp7030/SlackBuild/brotherdcp7030.SlackBuild
-rw-r--r-- root/root       424 2016-09-10 03:29 usr/doc/brotherdcp7030/SlackBuild/readme.txt
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/lib/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/lib/cups/
drwxr-xr-x root/root         0 2016-09-10 03:29 usr/lib/cups/filter/
-rwxr-xr-x root/root      4579 2016-09-10 03:29 usr/lib/cups/filter/brlpdwrapperDCP7030
-rwxr-xr-x root/root     53606 2016-09-10 03:29 usr/lib/libbrcomplpr2.so
drwxr-xr-x root/root         0 2016-09-10 03:29 install/
-rw-r--r-- root/root      1076 2016-09-10 03:29 install/slack-desc
-rw-r--r-- root/root       322 2016-09-10 03:29 install/doinst.sh
#
# below[2] -- note that vonbiber's Package includes an install/doinst.sh file in the listing above. What does it do ?
#
# extract the contents of the install/ directory from the Package into some tmp/ directory
#
Code:
pwd             # where am I ?
Code:
/home/dld/Brother/vonbiber-Brother-7030-SlackBuild   # note THIS
Code:
mkdir tmp
cd tmp
tar -xvf  ../brotherdcp7030-2.0.2_1-i386-1_vbi.txz install
#
# what is in install/doinst.sh ?
#
Code:
cat install/doinst.sh
Code:
if [ ! -e /var/spool/lpd ]
  mkdir /var/spool/lpd
  chgrp --reference=/var/spool/cups -R /var/spool/lpd
  chmod --reference=/var/spool/cups -R /var/spool/lpd
fi

mkdir -p /var/spool/lpd/DCP7030
chgrp --reference=/var/spool/cups/tmp -R /var/spool/lpd/DCP7030
chmod --reference=/var/spool/cups/tmp -R /var/spool/lpd/DCP7030
#
# looks safe enough ... nothing like rm -rf / is in there
#
# optional -- clean up the mess I made ...
#
Code:
pwd           # make SURE I am where I think I am
Code:
/home/dld/Brother/vonbiber-Brother-7030-SlackBuild/tmp
Code:
cd ..
pwd           # where am I NOW ?
Code:
/home/dld/Brother/vonbiber-Brother-7030-SlackBuild
#
# looks ok ... clean up ...
#
Code:
rm -rf tmp             # NOTE THE RELATIVE PATH ! ( no leading slashes here )
 
Old 09-10-2016, 05:54 AM   #38
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
@kjhambrick

Thanks for the comments. Great complementary advice
Now, we'll have to see what offgridguy has to say.

When I try to build a package from a deb or an rpm, I often have to
sift through a lot of cruft, and it doesn't always work the first time.
I guess I'm spoiled by slackware's logic ...
 
Old 09-10-2016, 06:23 AM   #39
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by vonbiber View Post
@kjhambrick
Thanks for the comments. Great complementary advice
You're more than welcome, and thank you for sharing the two SlackBuilds !
Quote:
When I try to build a package from a deb or an rpm, I often have to
sift through a lot of cruft, and it doesn't always work the first time.
I guess I'm spoiled by slackware's logic ...
Boy howdy !

The Brother RPM Packages can be a real mess, can't they ?

I downloaded several of them from the Brother Site and looked at the contents ( rpm -qil -p <<package.rpm>> ) hoping to maybe generalize what you've done.

I don't know how to do that though.

Even their file names are all over the place where it would be difficult to extract the MODEL and VERSION from the FileName.

The Version, Release and Architecture are in the rpm info output. Example, here is offgridguy's 7030 Printer:
Code:
# rpm -qi -p cupswrapperDCP7030-2.0.2-1.i386.rpm

Name        : cupswrapperDCP7030
Version     : 2.0.2
Release     : 1
Architecture: i386
Install Date: (not installed)
Group       : Utilities/System
Size        : 89050
License     : Copyright Brother Industries,Ltd -2005
Signature   : (none)
Source RPM  : cupswrapperDCP7030-2.0.2-1.src.rpm
Build Date  : Thu Jan 24 20:29:46 2008
Build Host  : localhost
Relocations : (not relocatable)
URL         : www.brother.com
Summary     : Brother DCP7030 CUPS wrapper driver
Description :
Brother DCP7030 CUPS wrapper driver
But then, they seem to install in /opt/ or /etc/opt/ or /usr/local/ or ... /???/ ... depending on ??? what ??? so generalizing a SlackBuild to handle ANY Brother Printer Driver RPM File would be tough.

Anyhow, thanks again.

You've now got your very own, special vonbiber-SlackBuilds/ directory in my /home/dld/Brother/ root directory

-- kjh
 
Old 09-10-2016, 07:14 AM   #40
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by kjhambrick View Post
The Brother RPM Packages can be a real mess, can't they ?

I downloaded several of them from the Brother Site and looked at the contents ( rpm -qil -p <<package.rpm>> ) hoping to maybe generalize what you've done.

I don't know how to do that though.

Even their file names are all over the place where it would be difficult to extract the MODEL and VERSION from the FileName.

But then, they seem to install in /opt/ or /etc/opt/ or /usr/local/ or ... /???/ ... depending on ??? what ??? so generalizing a SlackBuild to handle ANY Brother Printer Driver RPM File would be tough.
-- kjh
Tell me about it!
When I first started looking at the 7030 printer RPMs, based on what I've seen in the 2030,
I expect the same file structure: /opt, ...
and I was too hoping that it was just a matter of adapting the previous SlackBuild
If you have other brother printers (and links to their RPMs or debs), maybe between the two of us
(and perhaps other people interested) we could come up with a SlackBuild. Let me know.

Thanks again for your contributions
 
Old 09-23-2016, 12:09 PM   #41
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
@ vonbiber.
I apologize that I have to bother you with this, I am very inexperienced with this procedure.
I downloaded and installed the required 32 bit packages. I downloaded the script.
When I execute the command, I get this error message.

bash-4.2# chmod +x brotherdcp7030.SlackBuild
bash-4.2# ./brotherdcp7030.SlackBuild
couldn't find the cups rpm archive
couldn't find the lpr rpm archive
bash-4.2#

I must be doing something wrong, but I'm not sure what.
I downloaded the other packages, as well as the script, it's all here in my downloads.
 
Old 09-23-2016, 12:16 PM   #42
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by offgridguy View Post
@ vonbiber.
I apologize that I have to bother you with this, I am very inexperienced with this procedure.
I downloaded and installed the required 32 bit packages. I downloaded the script.
When I execute the command, I get this error message.

bash-4.2# chmod +x brotherdcp7030.SlackBuild
bash-4.2# ./brotherdcp7030.SlackBuild
couldn't find the cups rpm archive
couldn't find the lpr rpm archive
bash-4.2#

I must be doing something wrong, but I'm not sure what.
I downloaded the other packages, as well as the script, it's all here in my downloads.
These files:
brdcp7030lpr-2.0.2-1.i386.rpm
and
cupswrapperDCP7030-2.0.2-1.i386.rpm

should be placed in the same folder as brotherdcp7030.SlackBuild

You can download them from the same address as the SlackBuild:

http://vonbiber.byethost17.com/slack...uilds/dcp7030/
 
1 members found this post helpful.
Old 09-24-2016, 10:10 AM   #43
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Hello again,
Thank you for the help, I am getting closer.
I seem to be missing one file from alien-bob, I can't seem to find the cups-filter-compat32*,

I have this.
Quote:
package brotherdcp7030-2.0.2_1-i386-1_vbi.txz successfully created in /home/slak/brother
bash-4.2# ls /var/log/packages/cups*compat32* /var/log/packages/glibc-solibs-*multilib* 2>/dev/null
/var/log/packages/cups-compat32-2.1.4-x86_64-1compat32
/var/log/packages/glibc-solibs-2.23_multilib-x86_64-1alien
bash-4.2# installpkg brotherdcp7030-2.0.2_1-i386-1_vbi.txz
Verifying package brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
Installing package brotherdcp7030-2.0.2_1-i386-1_vbi.txz:
PACKAGE DESCRIPTION:
# dcp_7030 (driver for the Brother DCP-7030 printer)
#
# This package contains the lpr printer driver and
# the CUPS wrapper for the Brother DCP-7030 laser printer.
# Note that the binaries here are 32-bit. If you want to run this
# on a 64-bit slackware system, you need to install at least these
# packages (from Alien Bob): cups-compat32*, cups-filters-compat32*,
# and glibc-solibs*.
#
# http://support.brother.com/g/b/
#
Executing install script for brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
install/doinst.sh: line 5: syntax error near unexpected token `fi'
install/doinst.sh: line 5: `fi'
Package brotherdcp7030-2.0.2_1-i386-1_vbi.txz installed.

bash-4.2# chmod +x /etc/rc.d/rc.cups
bash-4.2# /etc/rc.d/rc.cups restart
cups: restarted scheduler. [ OK ]
bash-4.2# ^C
bash-4.2# ^C
I do have a Slackware 14.2 install CD 32 bit ordered as I am going to restore another older laptop. The 32 bit will also work on this machine
as well, I have used it in the past.

Last edited by offgridguy; 09-24-2016 at 10:15 AM.
 
Old 09-24-2016, 12:27 PM   #44
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by offgridguy View Post
Hello again,
Thank you for the help, I am getting closer.
I seem to be missing one file from alien-bob, I can't seem to find the cups-filter-compat32*,
The cups* packages are here:
http://taper.alienbase.nl/mirrors/pe...-1compat32.txz
http://taper.alienbase.nl/mirrors/pe...-2compat32.txz

Quote:
#
Executing install script for brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
install/doinst.sh: line 5: syntax error near unexpected token `fi'
install/doinst.sh: line 5: `fi'
There was an error. I fixed it.
Please, replace the SlackBuild you have with this one:
http://vonbiber.byethost17.com/slack...030.SlackBuild

or you can edit the SlackBuild you have: go to line 161, and replace the line
Code:
if [ ! -e /var/spool/lpd ]
by this line
Code:
if [ ! -e /var/spool/lpd ]; then

Last edited by vonbiber; 09-24-2016 at 04:12 PM. Reason: reordered the paragraphs
 
Old 09-24-2016, 03:09 PM   #45
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
Thank you again.
I have created a new folder named brother and moved these files into it.

Quote:
bash-4.2# cd /home/slak/brother
bash-4.2# ls
brdcp7030lpr-2.0.2-1.i386.rpm
brotherdcp7030-2.0.2_1-i386-1_vbi.txz
brotherdcp7030.SlackBuild
cups-compat32-2.1.4-x86_64-1compat32.txz
cups-filters-compat32-1.9.0-x86_64-2compat32.txz
cupswrapperDCP7030-2.0.2-1.i386.rpm
bash-4.2
#

Yet the cups-filter still seems to be missing.

Quote:
bash-4.2# cd /home/slak/brother
bash-4.2# pwd
/home/slak/brother
bash-4.2# chmod +x brotherdcp7030.SlackBuild
bash-4.2# ./brotherdcp7030.SlackBuild
extracting files from /home/slak/brother/cupswrapperDCP7030-2.0.2-1.i386.rpm ...
71 blocks
... done
extracting files from /home/slak/brother/brdcp7030lpr-2.0.2-1.i386.rpm ...
243 blocks
... done


Slackware package maker, version 3.14159.

Searching for symbolic links:

No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.

This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!

Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n

Creating Slackware package: /home/slak/brother/brotherdcp7030-2.0.2_1-i386-1_vbi.txz

./
install/
install/doinst.sh
install/slack-desc
usr/
usr/share/
usr/share/Brother/
usr/share/Brother/cupswrapper/
usr/share/Brother/cupswrapper/brcupsconfig3
usr/share/Brother/inf/
usr/share/Brother/inf/brDCP7030func
usr/share/Brother/inf/paperinf
usr/share/Brother/inf/setupPrintcap
usr/share/Brother/inf/brDCP7030rc
usr/share/Brother/inf/braddprinter
usr/share/Brother/lpd/
usr/share/Brother/lpd/psconvert2
usr/share/Brother/lpd/rawtobr2
usr/share/Brother/lpd/filterDCP7030
usr/share/cups/
usr/share/cups/model/
usr/share/cups/model/DCP7030.ppd
usr/doc/
usr/doc/brotherdcp7030/
usr/doc/brotherdcp7030/SlackBuild/
usr/doc/brotherdcp7030/SlackBuild/readme.txt
usr/doc/brotherdcp7030/SlackBuild/brotherdcp7030.SlackBuild
usr/bin/
usr/bin/brprintconflsr2
usr/bin/brprintconfiglpr2
usr/lib/
usr/lib/libbrcomplpr2.so
usr/lib/cups/
usr/lib/cups/filter/
usr/lib/cups/filter/brlpdwrapperDCP7030

Slackware package /home/slak/brother/brotherdcp7030-2.0.2_1-i386-1_vbi.txz created.


dcp_7030 (driver for the Brother DCP-7030 printer)

This package contains the lpr printer driver and
the CUPS wrapper for the Brother DCP-7030 laser printer.
Note that the binaries here are 32-bit. If you want to run this
on a 64-bit slackware system, you need to install at least these
packages (from Alien Bob): cups-compat32*, cups-filters-compat32*,
and glibc-solibs*.

http://support.brother.com/g/b/


package brotherdcp7030-2.0.2_1-i386-1_vbi.txz successfully created in /home/slak/brother
bash-4.2# ls /var/log/packages/cups*compat32* /var/log/packages/glibc-solibs-*multilib* 2>/dev/null
/var/log/packages/cups-compat32-2.1.4-x86_64-1compat32
/var/log/packages/glibc-solibs-2.23_multilib-x86_64-1alien
bash-4.2# installpkg brotherdcp7030-2.0.2_1-i386-1_vbi.txz
Verifying package brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
Installing package brotherdcp7030-2.0.2_1-i386-1_vbi.txz:
PACKAGE DESCRIPTION:
# dcp_7030 (driver for the Brother DCP-7030 printer)
#
# This package contains the lpr printer driver and
# the CUPS wrapper for the Brother DCP-7030 laser printer.
# Note that the binaries here are 32-bit. If you want to run this
# on a 64-bit slackware system, you need to install at least these
# packages (from Alien Bob): cups-compat32*, cups-filters-compat32*,
# and glibc-solibs*.
#
# http://support.brother.com/g/b/
#
Executing install script for brotherdcp7030-2.0.2_1-i386-1_vbi.txz.
Package brotherdcp7030-2.0.2_1-i386-1_vbi.txz installed.

bash-4.2# chmod +x /etc/rc.d/rc.cups
bash-4.2# /etc/rc.d/rc.cups restart
cups: restarted scheduler. [ OK ]
bash-4.2#
I can wait until I get my 32 bit install CD, if that will change anything?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] brother printer drivers randyvh Linux - Newbie 5 10-09-2015 06:01 PM
Brother DCP-J4110DW printer-Drivers Nuffield Linux - Newbie 2 02-06-2015 06:59 PM
Drivers for Brother MFC J430 w printer jbander Linux - Hardware 1 07-26-2013 07:44 PM
Unable to install Brother printer drivers siouxzieq Linux - Hardware 8 01-04-2012 04:35 PM
Brother Printer Drivers Site Down Michael Johnson Linux - General 1 07-21-2005 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration