You are not logged in.

#1 2008-06-21 15:49:30

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

pkgtools -- Archlinux package-related scripts

Yay, the repos now have filelists!

Pkgtools will include pkgfile to search them. It also includes newpkg, a script to speed up creating new package files.

Pkgtools is available in the community repo and on the AUR
The official pkgtools git repo is here: git://github.com/Daenyth/pkgtools.git
The git repo has changed, please update your local repo's remote settings if you use it!

Oh wow, what a lot of updates!

Changelog

All versions after 5 should check github for changes.

Version 5 -- http://github.com/mrosset/pkgtools/commits/v5
  - Added .install file
  - newpkg v4.0
    - Lots of bugfixes
    - Added config files
    - Added various options.
  - pkgfile v3.0
    - Lots of bugfixes
    - Added config files
    - Added zsh hook (Thanks z1o)
    - Added cronjob to --update
Version 4
  - pkgfile v2.0
    - Bugfixes in a few spots
    - Greatly reduced number of false positives
    - Added --regex option
    - Added --limit-rate option
Version 3
  - pkgfile v1.2
    - Bugfix in die() 
    - Add error message if $FILELIST_DIR is empty
Version 2:
  - pkgfile v1.1
    - Modified --help to be more helpful
Version 1
  - Merged newpkg v3.0 into pkgtools
  - Merged pkgfile v1.0 into pkgtools

Last edited by Daenyth (2008-08-25 15:00:19)

Offline

#2 2008-06-21 16:03:33

sabooky
Member
Registered: 2006-11-02
Posts: 89

Re: pkgtools -- Archlinux package-related scripts

AWESOME! I've been wanting this forever now, and had no way of doing it before. Awesome, thanks!

PS: When did the repos add filelists?

Offline

#3 2008-06-21 16:08:50

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

They added it this week I believe

Offline

#4 2008-06-22 03:26:43

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

Bump. Multiple bugfixes, new options. Try it out.

Offline

#5 2008-06-22 06:37:12

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: pkgtools -- Archlinux package-related scripts

Cool stuff! Keep up the great work.

PS. What exactly does newpkg do?


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#6 2008-06-22 08:28:01

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: pkgtools -- Archlinux package-related scripts

newpkg automatically creates prototype PKGBUILDS


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#7 2008-06-22 15:13:46

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

The original newpkg thread is at http://bbs.archlinux.org/viewtopic.php?id=50149

I won't be maintaining it anymore though, as I've merged it into this.

Offline

#8 2008-06-23 01:19:23

zio
Member
Registered: 2008-03-31
Posts: 30

Re: pkgtools -- Archlinux package-related scripts

I created a command not found hook for zsh. can be found here http://paste2.org/p/41778 .

Offline

#9 2008-06-23 01:21:02

zio
Member
Registered: 2008-03-31
Posts: 30

Re: pkgtools -- Archlinux package-related scripts

I also created a git repo can be found here       git://github.com/mrosset/pkgtools.git

Offline

#10 2008-06-28 22:54:00

kumyco
Member
From: somewhere
Registered: 2008-06-23
Posts: 153
Website

Re: pkgtools -- Archlinux package-related scripts

just a couple pointers, for now
do you have a bug tracker, or are you using this thread for bug tracking, etc.
----
anyway ...
there is a couple things you could/should do better,
just looking at the aurball script..
the `BUILDSCRIPT` var is provided through the makepkg system | source /etc/makepkg.conf
also, not everyone will install pkgs to /usr, i.e they may put then in */local/usr* for example,
so hardcoding /usr/* might not be the cleanest way of providing the `functions' et al
why not put then in /etc/pkgtools with the confif file

----

cool scripts btw wink

Offline

#11 2008-06-30 00:57:03

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

Right now I'm just using this thread. I'll add that BUILDSCRIPT change. I'm not really sure how I could avoid hardcoding /usr/share without some ugly sed stuff... I'll think about it though. For now I'd recommend anyone who wants that change should just modify the scripts. The reason it's not in etc is because I try to stick to the FHS.

Last edited by Daenyth (2008-06-30 01:03:01)

Offline

#12 2008-06-30 01:37:24

kumyco
Member
From: somewhere
Registered: 2008-06-23
Posts: 153
Website

Re: pkgtools -- Archlinux package-related scripts

ok cool, i'll listen out for changes
it'd prolly be cleaner to put all the files in /etc/pkgtools though

Offline

#13 2008-06-30 01:46:14

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

You're welcome to change the PKGBUILD to do so on your system, it would be simple. I don't plan on doing that officially though.

Offline

#14 2008-06-30 06:03:40

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: pkgtools -- Archlinux package-related scripts

someone on IRC asked what packge owned ifconfig, so I ran pkgfile ifconfig, which gave me back 'core/net'

except there is no 'core/net' package. I'm just confused as to what this means. any ideas?


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#15 2008-06-30 06:29:25

bavardage
Member
Registered: 2008-02-17
Posts: 160

Re: pkgtools -- Archlinux package-related scripts

[ben@wintermute ~]$ pacman -Qo `which ifconfig`
/sbin/ifconfig is owned by net-tools 1.60-13

Offline

#16 2008-06-30 07:04:27

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: pkgtools -- Archlinux package-related scripts

yes, I know net-tools owns it. I was just wondering why pkgfile didn't work and dispalyed a non-existent package


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#17 2008-06-30 15:30:55

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

Hmm.. I'll look into it. I think I know why... I strip the version info which is in the form of name-ver-rel, I must have made the regex greedy.

Offline

#18 2008-06-30 17:19:38

kumyco
Member
From: somewhere
Registered: 2008-06-23
Posts: 153
Website

Re: pkgtools -- Archlinux package-related scripts

yep, here's a patch

--- /usr/bin/pkgfile    2008-06-30 13:15:04.000000000 -0700
+++ /tmp/pkgfile    2008-06-30 13:14:40.554044591 -0700
@@ -115,9 +115,9 @@
         fi
 
         if [ "$VERBOSE" -eq 0 ]; then
-                local sedstring='s#-.*-.*/files:.*##'
+                local sedstring='s#-[0-9.a-z_]*-[0-9]*/files:.*##'
         else
-                local sedstring='s#-.*-.*/files:# : #' 
+                local sedstring='s#-[0-9a-z_.]*-[0-9]*/files:# : #' 
         fi
 
         grep -R "$fname" */* | sed "$sedstring" | uniq

Offline

#19 2008-06-30 18:12:01

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

Thanks for the patch. Fixed in git

EDIT: that fix broke --verbose, fix for the fix here

Last edited by Daenyth (2008-06-30 18:26:06)

Offline

#20 2008-07-29 11:31:39

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pkgtools -- Archlinux package-related scripts

Daenyth wrote:

Thanks for the patch. Fixed in git

EDIT: that fix broke --verbose, fix for the fix here

I am afraid that problem is still here.

$ pkgfile rc.d/kdm
extra/kde

It should be kde-common smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#21 2008-07-29 14:00:10

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

It's fixed in git, but I haven't pushed it to AUR yet. Sorry about the delay, I forgot about that fix. There are other things I was planning on including in the next release which aren't ready yet, so I forgot to do that. I'll push a bugfix release. Thanks for alerting me! I just updated it now.

Offline

#22 2008-07-29 15:16:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pkgtools -- Archlinux package-related scripts

Daenyth wrote:

It's fixed in git, but I haven't pushed it to AUR yet. Sorry about the delay, I forgot about that fix. There are other things I was planning on including in the next release which aren't ready yet, so I forgot to do that. I'll push a bugfix release. Thanks for alerting me! I just updated it now.

Ah ok, I only saw that fix was made a while ago, so I just assumed it was included but I did not check indeed.
Anyway, thanks for the update, it works nicely now smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#23 2008-07-29 15:24:19

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

No problem. Thanks for using it!

Offline

#24 2008-08-07 15:03:10

abhidg
Member
From: City of Kol
Registered: 2006-07-01
Posts: 184
Website

Re: pkgtools -- Archlinux package-related scripts

When I use "pkgfile -v ls" then output should show the
filenames, but it gives:

community/epic4 :
community/plan9port :
community/selinux-coreutils :
core/coreutils :
extra/r :

I solved it by replacing
local sedstring='s#-[0-9.a-z_]*-[0-9.]*/files:.*# : #'
with
local sedstring='s#-[0-9.a-z_]*-[0-9.]*/files:\(.*\)# : \1#'

Last edited by abhidg (2008-08-07 15:03:33)

Offline

#25 2008-08-07 17:02:53

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: pkgtools -- Archlinux package-related scripts

That bug is fixed in git already, and it the new version should be out tonight or tomorrow. I'm just waiting for the spec2arch author to commit some changes before I release it. Thanks for reporting it though!

Offline

Board footer

Powered by FluxBB