Author Topic: Package wizardpen driver for graphics tablets?  (Read 1483 times)

Offline cyrwyn

  • Hero Member
  • *****
  • Posts: 838
Package wizardpen driver for graphics tablets?
« on: March 18, 2010, 10:31:36 AM »
I have a new Genius MousePen tablet that I've got working using the wizardpen driver source. It's not even difficult if one knows Linux basics. This Xwindows driver should be part of PCLOS because it supports several brands and models of tablets: Acecad, Genius, DigiPro. A package would need to have a script that edits the /etc/X11/Xorg.conf file to add the load driver and configure it. Scripting and packaging aren't my forte. Anyone want to tackle this? I'll be glad to help with configuration questions. Source and other information links are at http://code.google.com/p/linuxgenius
Using Linux for over 18 years and still counting.

AndrzejL

  • Guest
Re: Package wizardpen driver for graphics tablets?
« Reply #1 on: March 18, 2010, 11:30:02 AM »
+1 - I don't have anything that needs this app but it will do good to the community

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Package wizardpen driver for graphics tablets?
« Reply #2 on: March 18, 2010, 12:00:55 PM »
This request should be moved to Package suggest for the suggestion to get votes and 'compete' among the other long list of suggested packages.

If others are interested in the package I'm sure it will be picked up by a packager that has this tablet.

On the other hand, if you would like to try packaging this cyrwyn, then just start out by creating a virtual machine and install PCLinux (the final 2010 preferrably) and let us know when you are ready to next step ;-)

First though, one should check out that there does not exist an rpm or better, src.rpm, for this package before packaging it (i.e. http://izhar.fedorapeople.org/wizardpen/wizardpen-0.7.0-2.fc12.src.rpm),

cheers,
MBantz
« Last Edit: March 18, 2010, 12:07:29 PM by MBantz »

Offline cyrwyn

  • Hero Member
  • *****
  • Posts: 838
Re: Package wizardpen driver for graphics tablets?
« Reply #3 on: March 18, 2010, 12:26:20 PM »
I hadn't seen that link for the rpm src file. I'll check it out. 
Using Linux for over 18 years and still counting.

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Package wizardpen driver for graphics tablets?
« Reply #4 on: March 18, 2010, 02:29:32 PM »
Cygwyn,

the src.rpm is intended to be used in your packaging environment - it includes the source and the spec-file that are the details on how to package it into an rpm.

As always, it is not supported to install from outside synaptic.

On the -other- hand (again :-) if you have a VM ready, and followed the sticky note on installing the packaging utilities - just right-click the src.rpm file for automatic installation into the packaging folders. Open the specfile in the SPEC folder with your favorite editor and make the necessary changes - when it is built only some information need to be changed. Right-click the specfile and select 'Build binary (RPM)' (or build All (if you want the system to generate a fresh src.rpm for upload to Tex :-)

cheers,
MBantz   

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Package wizardpen driver for graphics tablets?
« Reply #5 on: March 18, 2010, 02:48:30 PM »
MBantz:  You make it sound so easy!   :P
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Package wizardpen driver for graphics tablets?
« Reply #6 on: March 18, 2010, 04:51:56 PM »
Actually, it is the absolutely truth :-)

It take an evening or so to set-up your first package environment in a VM, but from there on it's just fun and very rewarding - you are on first row to learn something new every day about Linux and about PCLinux in particular :-) and tons of users will be able to use your work.

For an easy start, just pick small packages from Package Suggest that are requested for update - download the current PCLinux src.rpm and update the source you have downloaded from the program's website - recompile, install and test it - and send the fresh src.rpm to contribs. Then you learn the basics and what-goes-where - and after a handfull or two src.rpm (or SRPMS) you automatically take on more and more complicated programs.

If a package has been built for another distribution (some distributions are more suitable than others) you just proceed like described above, but more work is often required to set up menu entries and fixup the requirement package names to the ones we use here.

That said, packaging also can be brutal..now where is the fun if it's too easy all the time :-) but there is great help from the forum (and google!)

it's quite like brewing beer.... every detail/part of the build can always be improved - but a very special feeling when uploading your work to contribs and see it available for download in Synaptic after a short while :-)

Just for fun, the specfile for this package is inserted below. Here, you need to amend the names in the %buildrequires line to the PCLinux ones. %buildrequies are the packages needed to compile the package (usually -devel files).

Also change the "Group" entry to match the most appropriate entry in the Synaptic 'sections' list.

Just ask away, I'll (and others) will happily answer :-)

cheers,
MBantz

Code: [Select]
Name: wizardpen
Version: 0.7.0
Release: %mkrel 1
Summary: Wizardpen Driver for Linux

Group: User Interface/X Hardware Support
License: BSD/MIT
URL: http://code.google.com/p/linuxgenius/
Source0: http://linuxgenius.googlecode.com/files/wizardpen-%{version}-alpha2.tar.gz
Patch0:         wizardpen-xorg-1.7.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}

BuildRequires: xorg-x11-proto-devel xorg-x11-server-devel libXext-devel xorg-x11-utils xorg-x11-apps


%description
Wizardpen Driver for Linux

%prep
%setup -q -n %{name}-%{version}-alpha2
%patch0 -p1

%build
%configure --with-xorg-module-dir=%{_libdir}/xorg/modules
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc
%{_libdir}/xorg/modules/input/wizardpen_drv.la
%{_libdir}/xorg/modules/input/wizardpen_drv.so
%{_mandir}/man4/wizardpen.4.gz



%changelog
* Mon Feb 28 2010 Izhar Firdaus <izhar@fedoraproject.org> 0.7.0-2
- added patch http://code.google.com/p/linuxgenius/issues/detail?id=5 to compile on Xorg 1.7



AndrzejL

  • Guest
Re: Package wizardpen driver for graphics tablets?
« Reply #7 on: March 18, 2010, 06:01:29 PM »
OH man I never realized its not a Package Suggest section. I mean I never checked :). Thanks for noticing MBantz.

Andy

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Package wizardpen driver for graphics tablets?
« Reply #8 on: March 19, 2010, 09:14:18 AM »
so do we have this package or not ?
Every man dies, but not every man really lives... !!

   

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1318
Re: Package wizardpen driver for graphics tablets?
« Reply #9 on: March 19, 2010, 10:00:41 AM »
It has not been built yet - this is only a discussion on OP helping out packaging it. Not sure if it has any takers.

I don't have this tablet so I can't test it properly.

The OP should create a proper suggestion in Package Suggest -- or stay in this thread if he/anyone need help building it into an src.rpm. This area is for development issues,

cheers,
MBantz

Offline siamer

  • Sr. Member
  • ****
  • Posts: 284
    • ZEN-mini
Re: Package wizardpen driver for graphics tablets?
« Reply #10 on: March 19, 2010, 10:43:31 AM »
ok. Anyway sended to drop box, someone will have chance to test it  ;D hope that will work...

Removed patch 1 was making problems with our xorg...

Every man dies, but not every man really lives... !!