You are not logged in.
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)
[git] | [AURpkgs] | [arch-games]
Offline
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
They added it this week I believe
[git] | [AURpkgs] | [arch-games]
Offline
Bump. Multiple bugfixes, new options. Try it out.
[git] | [AURpkgs] | [arch-games]
Offline
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
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
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.
[git] | [AURpkgs] | [arch-games]
Offline
I created a command not found hook for zsh. can be found here http://paste2.org/p/41778 .
Offline
I also created a git repo can be found here git://github.com/mrosset/pkgtools.git
Offline
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
Offline
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)
[git] | [AURpkgs] | [arch-games]
Offline
ok cool, i'll listen out for changes
it'd prolly be cleaner to put all the files in /etc/pkgtools though
Offline
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.
[git] | [AURpkgs] | [arch-games]
Offline
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
[ben@wintermute ~]$ pacman -Qo `which ifconfig`
/sbin/ifconfig is owned by net-tools 1.60-13
blog - github - facebook - google profile
Offline
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
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.
[git] | [AURpkgs] | [arch-games]
Offline
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
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)
[git] | [AURpkgs] | [arch-games]
Offline
I am afraid that problem is still here.
$ pkgfile rc.d/kdm
extra/kde
It should be kde-common
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
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.
[git] | [AURpkgs] | [arch-games]
Offline
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
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
No problem. Thanks for using it!
[git] | [AURpkgs] | [arch-games]
Offline
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
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!
[git] | [AURpkgs] | [arch-games]
Offline