Introducing fpart - a file partitioning tool
Hi everyone, Have you ever wondered how you could split a file tree into parts of the same size, or into parts with a limited size or file number ? I have developed a small BSD-licensed tool called fpart that can do that for you (see http://contribs.martymac.org and https://sourceforge.net/projects/fpart). This small C program will crawl a given set of file or directory paths, organize them and print resulting partitions. This can be useful to e.g. launch several rsync(1) in parallel or store files on media of limited size. Here are some examples : 1) Produce 3 partitions, with (approximatively) the same size and number of files : $ fpart -n 3 -o var-parts /var 2) Produce partitions of 4.4 GB, containing music files ready to be burnt to a DVD : $ fpart -s 4724464025 -o music-parts /path/to/my/music 3) Produce partitions containing 1 files each by examining /usr and /home : $ find /usr ! -type d | ./fpart -f 1 -i - /home | grep '^0:' The tool is already available in ports (sysutils/fpart) but has also successfully been used on GNU/Linux. Enjoy ! Best regards, PS : comment and patches are, of course, welcome :) -- Ganael LAPLANCHE ganael.laplan...@martymac.org http://www.martymac.org | http://contribs.martymac.org FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Introducing fpart - a file partitioning tool
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ganael, On 01/06/2012 03:36 AM, Ganael LAPLANCHE wrote: Hi everyone, Have you ever wondered how you could split a file tree into parts of the same size, or into parts with a limited size or file number ? I have developed a small BSD-licensed tool called fpart that can do that for you (see http://contribs.martymac.org and https://sourceforge.net/projects/fpart). This small C program will crawl a given set of file or directory paths, organize them and print resulting partitions. This can be useful to e.g. launch several rsync(1) in parallel or store files on media of limited size. Here are some examples : 1) Produce 3 partitions, with (approximatively) the same size and number of files : $ fpart -n 3 -o var-parts /var 2) Produce partitions of 4.4 GB, containing music files ready to be burnt to a DVD : $ fpart -s 4724464025 -o music-parts /path/to/my/music 3) Produce partitions containing 1 files each by examining /usr and /home : $ find /usr ! -type d | ./fpart -f 1 -i - /home | grep '^0:' The tool is already available in ports (sysutils/fpart) but has also successfully been used on GNU/Linux. Enjoy ! Best regards, PS : comment and patches are, of course, welcome :) Awesome! This seems like a great idea! Thanks! I'll definitely test and play with it and let you know if I have any issues, bugs, patches, etc.. Regards, Janky Jay, III -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8G12QACgkQGK3MsUbJZn4c6ACffLvyINEqki3nWuO+udPRiDAc S3UAnRw2aGlCo2uiQS5U7ogkcbqWIY4T =r90c -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Introducing fpart - a file partitioning tool
On Fri, 06 Jan 2012 04:13:44 -0700, Janketh Jay wrote Hi Janketh, Awesome! This seems like a great idea! Thanks! I'll definitely test and play with it and let you know if I have any issues, bugs, patches, etc.. Great :) Thank you very much ! Cheers, -- Ganael LAPLANCHE ganael.laplan...@martymac.org http://www.martymac.org | http://contribs.martymac.org FreeBSD: martymac marty...@freebsd.org, http://www.FreeBSD.org ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
PHP Interactive Mode, phpsh
The Gods seem to be conspiring against me. I'm flummoxed as to why I can't get php running in interactive mode (php -a). Some relevant info: php5-5.3.8 PHP Scripting Language php5-extensions-1.5 A meta-port to install PHP extensions php5-readline-5.3.8 The readline shared extension for php python27-2.7.2_2An interpreted object-oriented programming language I tried doing an endrun around the problem by installing python in conjunction with the /devel/phpsh port. That hasn't quite worked out either. Testing the installation of phpsh on a local build server: $ phpsh Starting php Install pcntl to enable forking on every command. type 'h' or 'help' to see instructions features php echo Hello world\n; Hello world php d array_merge Traceback (most recent call last): File /usr/local/bin/phpsh, line 127, in module t_c_ret = s.try_command(line) File /usr/local/lib/python2.7/site-packages/phpsh/__init__.py, line 909, in try_command import manual File /usr/local/lib/python2.7/site-packages/phpsh/manual.py, line 4, in module from sqlite3 import dbapi2 as sqlite File /usr/local/lib/python2.7/sqlite3/__init__.py, line 24, in module from dbapi2 import * File /usr/local/lib/python2.7/sqlite3/dbapi2.py, line 27, in module from _sqlite3 import * ImportError: No module named _sqlite3 [ At this point phpsh exits ] Building a phpsh package fails: === Building package for phpsh-20110513 tar: etc/phpsh/config.sample: Cannot stat: No such file or directory tar: etc/phpsh/php_manual.db: Cannot stat: No such file or directory tar: etc/phpsh/rc.php: Cannot stat: No such file or directory tar: Error exit delayed from previous errors. pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /usr/ports/devel/phpsh. *** Error code 1 Stop in /usr/ports/devel/phpsh. Running 'pkg_info -L' reveals the missing files being installed into /usr/local/etc/phpsh, but no such directory (or files) exists. And just for fun, the results after installing phpsh on Mac OS X (where php interactive mode doesn't work either): Warning: require_once(/opt/local/etc/phpsh/rc.php): failed to open stream: No such file or directory in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/phpsh/phpsh.php on line 49 Fatal error: require_once(): Failed opening required '/opt/local/etc/phpsh/rc.php' (include_path='.:') in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/phpsh/phpsh.php on line 49 Could someone shed some light as to why php interactive mode doesn't work with FreeBSD? Or alternatively, how to fix my phpsh installation and get a package made? Thanks! ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On 01/05/12 21:18, Gary Jennejohn wrote: On Thu, 05 Jan 2012 09:52:40 +1000 Da Rockfreebsd-po...@herveybayaustralia.com.au wrote: On 01/04/12 23:27, Gary Jennejohn wrote: On Wed, 04 Jan 2012 22:31:51 +1000 Da Rockfreebsd-po...@herveybayaustralia.com.au wrote: I've been advised I should attempt to port this for general use to FreeBSD. I've been operating it manually very successfully now in a number of operations. This is, however, my first attempt at a port and I would like some guidance to see if I've done this right. I was advised to copy the essential parts from a similar port, so I've used archivers/linux-f10-ucl. This is my Makefile: # New ports collection makefile for:archivers/linux-f10-nss_ldap # Date created:2012-01-04 # Whom:rskinner # # $FreeBSD$ # PORTNAME=nss_ldap PORTVERSION=1.03 CATEGORIES=security linux MASTER_SITES=CRITICAL/rpm/${LINUX_RPM_ARCH}/fedora/${LINUX_DIST_VER} PKGNAMEPREFIX=linux-f10- DISTNAME=${PORTNAME}-${PORTVERSION}-${RPMVERSION} MAINTAINER=emulat...@freebsd.org COMMENT=nss_ldap library (Linux Fedora 10) CONFLICTS= USE_LINUX_RPM=yes LINUX_DIST_VER=10 RPMVERSION=8.fc9 USE_LDCONFIG=yes PLIST_FILES=usr/lib/libnss_ldap.so.2 usr/lib/libnss_ldap.so usr/lib/libnss_ldap-264.so DOCSDIR=${PREFIX}/usr/share/doc/${PORTNAME}-${PORTVERSION} PORTDOCS=COPYING NEWS README THANKS TODO DESCR=${.CURDIR}/../${PORTNAME}/pkg-descr .includebsd.port.mk And I have a pkg-descr file. Am I on the right track? I'm following the porters handbook as well. Doesn't pass portlint. Can't fetch the RPM file. Otherwise, a pretty good start. Ok, thats good so far then. Thanks for the assessment. Now, what's portlint? /usr/ports/ports-mgmt/portlint. It does syntax checking on the Makefile and checks things like correct checksums in distfile. You run it in the port's directory. And I have a question or two about the rpm. Do I need to script something to just extract the files needed, or is it already in the mk files already somewhere? I suspect that setting USE_LINUX_RPM= yes in Makefile should be all you need, but I've never done a RPM port. Some seem to use only LINUX_RPM_ARCH= i386, which is the only option at the moment since we don't have a AMD64 Linux base port. And how do I work out the url for fetching the rpm? This particular one is a moving target as the distro is already eol. Is it stored on the FreeBSD servers? Or what do I do here? That could be a problem. Maybe a committer could host it for you. I'm hosting flwm-1.00.tgz, although I don't think it's used anymore. In the porters handbook it mentions checksums and make makesum - does that mean I have to put it in the ports tree to try it? I just update Makefile, fetch the tarball and then run make makesum before generating diffs or making a tarball of the port. And is pkg-message scripted or do I just create it? See the comment in /usr/ports/Mk/bsd.port.mk. There are lots of very informative comments in that file. I've read that before too, but I seem to be missing something fundamental about ports here. I need to get a handle on all this before I can proceed. I'm pulling it apart now, anyway. There are native ports, and there are the linux base ports. For the native ports the maintainer hosts? But these linux ports are they hosted on the linux rpm sites? Or are they hosted by the maintainer? So I believe I cannot sort a few things out until I know exactly what is going on here. As I mentioned its eol, but if the rest come from the linux sites... All I want is 3 files from the usr/lib in the rpm (I think). What I couldn't quite ascertain is what is done here in the bsd.linux-rpm.mk: is it extracted and the files copied by make? Or is the rpm installed as in linux? If I have to find a host for it I can host it, but what opportunities for a backup site exist in case of failure? Do I have to arrange that as the maintainer, or is it mirrored by FreeBSD automatically? Ideally I suppose both those scenarios would be in order. And Chris, the license to most linux core stuff is GPL - I also checked the COPYING file for nss_ldap (as that is the only one we're concerned with here) and its GPLv2. I've been spending the past few days trying to work out a tinderbox but my resources are stretched. I'm hoping to rectify this in the near future, but so far nada... The checksums are all tied up with the hosting and so I'm still stuck there until I work it out, Paul. So I have to untangle these threads so I have a clearer picture on what I'm doing. from what I understand in what you're telling me it means I have to create the checksums to make available from the site, and makesum downloads it. If thats right, what do I have to do to create them? The handbook says differently (I think? Maybe I'm reading it wrong...)
Re: linux-f10-nss_ldap: my first port - be gentle :)
On 06/01/2012 14:33, Da Rock wrote: There are native ports, and there are the linux base ports. For the native ports the maintainer hosts? But these linux ports are they hosted on the linux rpm sites? Or are they hosted by the maintainer? So I believe I cannot sort a few things out until I know exactly what is going on here. As I mentioned its eol, but if the rest come from the linux sites... The fact that some ports are linux-base ports and some are native is not that significant. The important differences are that: * the linux ports install into PREFIX=/compat/linux and the native ports generally use PREFIX=/usr/local * you don't compile the linux ports from source; instead you just unpack pre-compiled binaries from one or other of the Linux packaging systems. Who hosts the distfiles depends entirely on circumstance. If there's an active project that has the distfile freely available for download, then use that. Otherwise you will have to find a server somewhere you could make the distfiles available from. That should be distinct from the distfile cache generated by the ports building cluster. This is the same irrespective of whether it is a linux-base or a native port. All I want is 3 files from the usr/lib in the rpm (I think). What I couldn't quite ascertain is what is done here in the bsd.linux-rpm.mk: is it extracted and the files copied by make? Or is the rpm installed as in linux? bsd.linux-rpm.mk provides a customized version of the do-install make target, and all the necessary bits to extract the files from the .rpm, so yes. However, it does assume packages are downloaded from one of the well-known FTP sites for (in your case) Fedora 10, so you'll have to override that bit by setting MASTER_SITES etc. yourself. If I have to find a host for it I can host it, but what opportunities for a backup site exist in case of failure? Do I have to arrange that as the maintainer, or is it mirrored by FreeBSD automatically? Ideally I suppose both those scenarios would be in order. More than one download site is desirable, but not an absolute requirement. Unless the license terms say otherwise, the distfiles will end up being mirrored on ftp.freebsd.org but this doesn't count towards the number of available download sites. I've been spending the past few days trying to work out a tinderbox but my resources are stretched. I'm hoping to rectify this in the near future, but so far nada... http://redports.org/wiki/UserGuide It's only just been opened to public use, but it seems to be being received with great gladness so far. The checksums are all tied up with the hosting and so I'm still stuck there until I work it out, Paul. So I have to untangle these threads so I have a clearer picture on what I'm doing. from what I understand in what you're telling me it means I have to create the checksums to make available from the site, and makesum downloads it. If thats right, what do I have to do to create them? The handbook says differently (I think? Maybe I'm reading it wrong...) Usually the process is that you edit the Makefile to see up the PORTNAME, PORTVERSION or DISTVERSION, MASTER_SITES and anything else to do with downloading the distfile. Then you just run 'make makesum' That should download the distfile, calulate the SHA256 checksum and write out a suitable distinfo file automatically. If there are out-of-band mechanisms for checking the integrity of the distfile, then you as maintainer should certainly check them. (eg. digital signatures on distfiles or published checksums) However, once you've done that then the SHA265 checksum in distinfo should be sufficient to ensure all ports users are downloading the same, correct, content. Either that or maybe I'm just too tired rather than confused... :/ I'll have a look at another linux port tomorrow and pull it apart- and I'll try one closer to the core this time. Yep. Blatantly copying from a similar and well-written port is the best method, and definitely approved of. Watch out for older ports though -- best practice has changed over time, and not all ports have been updated to match. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: linux-f10-nss_ldap: my first port - be gentle :)
On 6 Jan 2012 14:37, Da Rock freebsd-po...@herveybayaustralia.com.au wrote: If I have to find a host for it I can host it, but what opportunities for a backup site exist in case of failure? Do I have to arrange that as the maintainer, or is it mirrored by FreeBSD automatically? Ideally I suppose both those scenarios would be in order. And Chris, the license to most linux core stuff is GPL - I also checked the COPYING file for nss_ldap (as that is the only one we're concerned with here) and its GPLv2. Thanks for checking. When it comes to licensing, one should never make assumptions :) Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Sat, 07 Jan 2012 00:33:30 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: On 01/05/12 21:18, Gary Jennejohn wrote: [snip lots of old stuff] There are native ports, and there are the linux base ports. For the native ports the maintainer hosts? But these linux ports are they hosted on the linux rpm sites? Or are they hosted by the maintainer? So I believe I cannot sort a few things out until I know exactly what is going on here. As I mentioned its eol, but if the rest come from the linux sites... Usually the RPM is grabbed from one of the many Linux sites, assuming it's still hosted on one. Once the port gets into the tree, and assuming it can still be grabbed from a Linux site, then it will eventually end up under distfiles on one of the FreeBSD sites. The FreeBSD sites are usually the last resort for getting distfiles. All I want is 3 files from the usr/lib in the rpm (I think). What I couldn't quite ascertain is what is done here in the bsd.linux-rpm.mk: is it extracted and the files copied by make? Or is the rpm installed as in linux? I must admit that I'm not too clear on how this works myself. If I have to find a host for it I can host it, but what opportunities for a backup site exist in case of failure? Do I have to arrange that as the maintainer, or is it mirrored by FreeBSD automatically? Ideally I suppose both those scenarios would be in order. Already answered above. The checksums are all tied up with the hosting and so I'm still stuck there until I work it out, Paul. So I have to untangle these threads so I have a clearer picture on what I'm doing. from what I understand in what you're telling me it means I have to create the checksums to make available from the site, and makesum downloads it. If thats right, what do I have to do to create them? The handbook says differently (I think? Maybe I'm reading it wrong...) I think Paul was assuming that the hosting Linux site will provide the checksums. You have to make sure that they agree with what makesum generates in distinfo. -- Gary Jennejohn ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Patch for net-mgmt/p0f
Hi guys I found that p0f doesn't work with the pflog interface. A bit of searching and this patch turned up: http://desync.com/~bw/patch-p0f.c With it applied instead of the default patch it works. It looks like the default patch has a few wrong line numbers in it and is missing the first part of the patch. Please could somebody commit the new patch. Regards Clay ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
FreeBSD Port: phantomjs-1.0.0
Any plans to upgrade phantomjs port to version 1.4? Thanks! -- Alan Bryan ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Gimp Plugin als Port?
Hey, ich hasse die herkömmliche art Software zu installieren. ./configure make sudo make install Grausig - das hinterget jeden Paketmanager. Ich brauche gerade ein Gimp Plugin - es nennt sich Exifviewer: http://registry.gimp.org/node/8839 Weiss jemend ob es einen Port gibt dafür? ich fand keinen - vielleicht gibts ja was, was das Ding mit anderen Plug Ins zusammen beinhakltet: /usr/ports/graphics/gimp /usr/ports/graphics/gimp-app /usr/ports/graphics/gimp-data-extras /usr/ports/graphics/gimp-focusblur-plugin /usr/ports/graphics/gimp-gap /usr/ports/graphics/gimp-gmic-plugin /usr/ports/graphics/gimp-help /usr/ports/graphics/gimp-lqr-plugin /usr/ports/graphics/gimp-manual-html /usr/ports/graphics/gimp-manual-pdf /usr/ports/graphics/gimp-resynthesizer /usr/ports/graphics/gimp-save-for-web /usr/ports/graphics/gimpfx-foundry sonst eine Idee, wie ich das ding instwelliere ohne meine Pakete zu zerschießen? Heino PS.: Dazu bin ich mir unsicher, ob das FreeBSD Make das überhaupt so macht, wie das make von vermutlich Linux. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Patch for net-mgmt/p0f
On Fri, Jan 06, 2012 at 04:12:19PM -, Clayton Milos wrote: Hi guys I found that p0f doesn't work with the pflog interface. A bit of searching and this patch turned up: http://desync.com/~bw/patch-p0f.c With it applied instead of the default patch it works. It looks like the default patch has a few wrong line numbers in it and is missing the first part of the patch. Please could somebody commit the new patch. The patch needs to include sys/queue.h before including net/if_pflog.h, at least on my -CURRENT system. I'm testing things now and will commit if it all looks good. -- WXS ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Patch for net-mgmt/p0f
On Fri, Jan 06, 2012 at 04:12:19PM -, Clayton Milos wrote: Hi guys I found that p0f doesn't work with the pflog interface. A bit of searching and this patch turned up: http://desync.com/~bw/patch-p0f.c With it applied instead of the default patch it works. It looks like the default patch has a few wrong line numbers in it and is missing the first part of the patch. Please could somebody commit the new patch. These kinds of requests are better filled out as a PR so that they don't get lost in the daily shuffle of this list. For now I will take a look at that patch and see about getting it committed. -- WXS ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Gimp Plugin als Port?
On 2012-01-06 21:26, Heino Tiedemann wrote: Hey, ich hasse die herkömmliche art Software zu installieren. ./configure make sudo make install Grausig - das hinterget jeden Paketmanager. Ich brauche gerade ein Gimp Plugin - es nennt sich Exifviewer: http://registry.gimp.org/node/8839 Weiss jemend ob es einen Port gibt dafür? ich fand keinen - vielleicht gibts ja was, was das Ding mit anderen Plug Ins zusammen beinhakltet: /usr/ports/graphics/gimp /usr/ports/graphics/gimp-app /usr/ports/graphics/gimp-data-extras /usr/ports/graphics/gimp-focusblur-plugin /usr/ports/graphics/gimp-gap /usr/ports/graphics/gimp-gmic-plugin /usr/ports/graphics/gimp-help /usr/ports/graphics/gimp-lqr-plugin /usr/ports/graphics/gimp-manual-html /usr/ports/graphics/gimp-manual-pdf /usr/ports/graphics/gimp-resynthesizer /usr/ports/graphics/gimp-save-for-web /usr/ports/graphics/gimpfx-foundry sonst eine Idee, wie ich das ding instwelliere ohne meine Pakete zu zerschießen? Heino PS.: Dazu bin ich mir unsicher, ob das FreeBSD Make das überhaupt so macht, wie das make von vermutlich Linux. I suspect this mail should be directed to de-bsd-questions@de... Looking at the sources it seems not hard to create a port. If you are interested creating and become maintainer of this port I can assist you. (auch in deutsch ;) -- Regards, olli ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Thu, 5 Jan 2012 12:18:25 +0100 Gary Jennejohn gljennj...@googlemail.com wrote: On Thu, 05 Jan 2012 09:52:40 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: And I have a question or two about the rpm. Do I need to script something to just extract the files needed, or is it already in the mk files already somewhere? I suspect that setting USE_LINUX_RPM= yes in Makefile should be all you need, but I've never done a RPM port. Some seem to use only More or less correct. He already has his Makefile nearly at the minimum. And how do I work out the url for fetching the rpm? This particular one is a moving target as the distro is already eol. Is it stored on the FreeBSD servers? Or what do I do here? That could be a problem. Maybe a committer could host it for you. I'm hosting flwm-1.00.tgz, although I don't think it's used anymore. If it is not available on the Fedora 10 sites, you can host it on your system, or someone can offer to host it for you. We can arrange to host it on FreeBSD systems, I already have some linux ports there. In the porters handbook it mentions checksums and make makesum - does that mean I have to put it in the ports tree to try it? I just update Makefile, fetch the tarball and then run make makesum before generating diffs or making a tarball of the port. The linux ports are a little bit special. They are binary ports and the GPL requires that we distribute the source too. So if the RPM and the SRPM follow the distribution-default-naming-convention, you should run make -DPACKAGE_BULDING makesum and it will also take care about the SRPM. Without this we can not really integrate it into the ports tree (and the package building cluster will spit out errors). If it does not follow the naming convention, you have to override it (if you set DISTFILES, you need to set SRC_DISTFILES manually, you have to set MASTER_SITE_SRC_SUBDIR if you set MASTER_SITE_SUBDIR). bsd.linux-rpm.mk has the corresponding code. And is pkg-message scripted or do I just create it? See the comment in /usr/ports/Mk/bsd.port.mk. There are lots of very informative comments in that file. If you do not want to use variable-expansion in it, you just create it. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Thu, 05 Jan 2012 10:42:17 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: On 01/05/12 07:10, Alexander Leidinger wrote: On Wed, 04 Jan 2012 22:31:51 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: I've been advised I should attempt to port this for general use to FreeBSD. I've been operating it manually very successfully now in a number of operations. This is, however, my first attempt at a port and I would like some guidance to see if I've done this right. I was advised to copy the essential parts from a similar port, so I've used archivers/linux-f10-ucl. This is my Makefile: # New ports collection makefile for: archivers/linux-f10-nss_ldap # Date created: 2012-01-04 # Whom:rskinner # # $FreeBSD$ # PORTNAME=nss_ldap PORTVERSION=1.03 CATEGORIES=security linux MASTER_SITES= CRITICAL/rpm/${LINUX_RPM_ARCH}/fedora/${LINUX_DIST_VER} PKGNAMEPREFIX=linux-f10- DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION} MAINTAINER=emulat...@freebsd.org This should be you (if you're willing to maintain the port). You keep dropping hints like this all the time Alex :) Honestly, though, I'm not sure whats involved or whether I'm capable of handling the responsibility. This one is not likely to change too much over time, but my skills are probably wanting. More or less everyone started like this. Just jump in and give it a try. As you can see we have some helpful people here around. COMMENT=nss_ldap library (Linux Fedora 10) CONFLICTS= USE_LINUX_RPM=yes LINUX_DIST_VER=10 RPMVERSION=8.fc9 This does not sound like you took a Fedora 10 RPM here, but you specified in LINUX_DIST_VER that you use Fedora 10. I wasn't sure exactly what to put there yet, but this was a Makefile for linux-f10-ucl so I thought it would be at least close. The filename is supposed to be nss_ldap-264-6.fc10.i386.rpm. I suggest to grep around Mk/*linux* for such linux-specific stuff. Most likely you will find places where they are used. Maybe you can deduvt from there if they are needed in your Makefile, or to what they should be set to. USE_LDCONFIG=yes PLIST_FILES=usr/lib/libnss_ldap.so.2 usr/lib/libnss_ldap.so usr/lib/libnss_ldap-264.so DOCSDIR= ${PREFIX}/usr/share/doc/${PORTNAME}-${PORTVERSION} PORTDOCS=COPYING NEWS README THANKS TODO DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr You don't need DESCR this way, it looks like this sets it to the same file (but in a different way) than the default value of DESCR. I have a pkg-descr file setup. That should be right, isn't it? Yes. You only need to change the value of DESCR in the Makefile, if you want to use another (generated) file. .includebsd.port.mk And I have a pkg-descr file. Am I on the right track? I'm following the porters handbook as well. When doing the make makesum, please use make -DPACKAGE_BUILDING makesum to get the checkums of the SRPMs recorded too. We are obliged to provide the GNU sources the same way like the binaries, and IIRC we have some logic which fetches the SRPMs on tha packaga bulding cluster. Oh, dear. I'll have to go hunting for them then. Unfortunately yes. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
RE: Patch for net-mgmt/p0f
-Original Message- From: Wesley Shields [mailto:w...@freebsd.org] Sent: 06 January 2012 20:48 To: Clayton Milos Cc: po...@freebsd.org Subject: Re: Patch for net-mgmt/p0f On Fri, Jan 06, 2012 at 04:12:19PM -, Clayton Milos wrote: Hi guys I found that p0f doesn't work with the pflog interface. A bit of searching and this patch turned up: http://desync.com/~bw/patch-p0f.c With it applied instead of the default patch it works. It looks like the default patch has a few wrong line numbers in it and is missing the first part of the patch. Please could somebody commit the new patch. The patch needs to include sys/queue.h before including net/if_pflog.h, at least on my -CURRENT system. I'm testing things now and will commit if it all looks good. -- WXS Thanks Wesley I compiled it on 8.1-RELEASE i386 GENERIC. I've also just tested it on 8.2-RELEASE amd64 GENERIC. I'm not running -CURRENT on any of my systems at the moment. Regards Clay ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Wed, 4 Jan 2012 20:19:55 -0700 Chad Perrin c...@apotheon.net wrote: On Thu, Jan 05, 2012 at 12:20:45PM +1000, Da Rock wrote: On 01/05/12 12:11, Chad Perrin wrote: The best way to learn, I think, is to get yourself a mentor and jump in. That's how I'm doing it (and yeah, that means I'm not the right person to mentor you). Thats what I'm looking for, alright. I've been looking for a few years now. Any suggestions? Ask on this list, I guess. Hey -- does anyone (qualified) want to mentor Da Rock as a port maintainer? I suggest to just ask on the list when there are questions. I expect that people with specific questions get much faster responses from the list than from a single person. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Fri, 6 Jan 2012 17:24:50 +0100 Gary Jennejohn gljennj...@googlemail.com wrote: On Sat, 07 Jan 2012 00:33:30 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: All I want is 3 files from the usr/lib in the rpm (I think). What I couldn't quite ascertain is what is done here in the bsd.linux-rpm.mk: is it extracted and the files copied by make? Or is the rpm installed as in linux? I must admit that I'm not too clear on how this works myself. The files from the RPM are extracted and then copied to the LINUXBASE (if not overridden). If the Makefiles species some files to brand (should be done for executable binaries, not for libs) the files are branded before installation. See bsd.linux-rpm.mk, do-install target. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Sat, 07 Jan 2012 00:33:30 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: On 01/05/12 21:18, Gary Jennejohn wrote: See the comment in /usr/ports/Mk/bsd.port.mk. There are lots of very informative comments in that file. I've read that before too, but I seem to be missing something fundamental about ports here. I need to get a handle on all this before I can proceed. I'm pulling it apart now, anyway. The linux ports are far from normal FreeBSD ports. There are two levels of indirections involved. The ports which make up the linux infrastructure ports (USE_LINUX_APPS=xxx; defined in bsd.linux-apps.mk... you don't need it for your port I think) - typically ports which are needed by several other linux ports - are similar to e.g. GNOME ports, but they don't use bsd.port.mk like the other FreeBSD ports, but the bsd.linux-rpm.mk. And bsd.linux-rpm.mk uses bsd.ports.mk. bsam@ and me wrote those linux mk files, and at least I need to consult the files if I review a linux port more often than if I review a normal FreeBSD port. So if you don't get it the first time, don't be afraid, you didn't chose to make one of the most easy ports. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
On Thu, 05 Jan 2012 09:52:40 +1000 Da Rock freebsd-po...@herveybayaustralia.com.au wrote: In the porters handbook it mentions checksums and make makesum - does that mean I have to put it in the ports tree to try it? You need to have the ports tree on the machine where you try it. Just create a directory somewhere, copy the Makefile inside, and give it a try (most easy as root, this way you don't have to override some directory variables to get it working). Before you try the redports suggestions: get it first working via a simple make on a local system first. If you only use redports it would slow you down until you get something working. Bye, Alexander. -- http://www.Leidinger.netAlexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
FreeBSD Port: mysql-server-5.0.92
I'm doing testing with running MySQL-cluster versions 7.1.13 and 7.2.2 on FreeBSD and I was wondering if you had any plans for porting MySQL-cluster to FreeBSD? If you do, what might the time frame be for a MySQL-cluster port? I know 7.2.2 is beta, so I wouldn't want that to be ported, I just wanted to see the differences with the changes they added from the 5.1 to 5.5 version change they did. William M. Shaddox ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: linux-f10-nss_ldap: my first port - be gentle :)
Ok, clean slate. Lets start afresh :) First I need a way to test properly. Alex, you mention I need a ports tree on the machine, and then you say to create a directory somewhere and put Makefile in it and run make (as root). Does the directory need to be in the ports tree then? The rpm files extracted: is there anyway to distinguish which files are copied or is it simply put into LINUXBASE wholesale? I ask because the rpm in question contains pam libraries which are unneeded obviously as authentication is done by the host? system. I believe this could represent a bit of a security risk, but I suppose one could setup an option if wanted. And how does this affect PLIST? And by running make a port is normally built in the port's directory. In the case of a linux port it is only downloaded into the distfiles/. Is it extracted during make or make install though? I couldn't quite determine that categorically. I've also changed the Makefile to use bsd.linux-rpm.mk instead of bsd.port.mk. I have setup a pkg-descr file to be put in the directory. Chris, you're right about the license situation. I nearly fell for it: ass-u-me... :) Hosting: I downloaded the rpm myself (including srpm), and I can host them and maybe arrange for them to be hosted elsewhere as well. Can I use MASTER_SITES to append/prepend? I also have to untangle the web of how to determine which file to download - argh hem! Sorry, fetch ;) if the linux-f10 base ports are obtained from the Fedora sites, then what happens if f10 rpms are no longer available there? And finally checksums: I create a checksum for the port, the linux sites have checksums, and I was advised in passing to check the checksums match. The checksums are going to differ aren't they? Linux and BSD checksums wouldn't be the same, surely? I'll keep at it in the meantime... :) ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Introducing fpart - a file partitioning tool
On Fri 2012-01-06 11:36:56 UTC+0100, Ganael LAPLANCHE (ganael.laplan...@martymac.org) wrote: Have you ever wondered how you could split a file tree into parts of the same size, or into parts with a limited size or file number ? I have developed a small BSD-licensed tool called fpart that can do that for you (see http://contribs.martymac.org and https://sourceforge.net/projects/fpart). This small C program will crawl a given set of file or directory paths, organize them and print resulting partitions. This can be useful to e.g. launch several rsync(1) in parallel or store files on media of limited size. Interesting! Thanks. I see there's a similar program called GAFFitter in the Ports tree (sysutils/gaffitter)... Genetic Algorithm File Fitter, or just GAFFitter, is a command-line software written in C++ that arranges--via a genetic algorithm--an input list of items or files/directories into volumes of a certain capacity (target), such as CD or DVD, in a way that the total wastage is minimized. By smartly arranging the input list, GAFFitter fits better the given items and so optimizes (reduces) the number of required volumes to pack them. Currently, GAFFitter runs on GNU/Linux and other POSIX systems, but it is designed in such manner that should be easily extended to non-POSIX operating environment. http://gaffitter.sourceforge.net/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: Gimp Plugin als Port?
Olli Hauer oha...@freebsd.org wrote: On 2012-01-06 21:26, Heino Tiedemann wrote: Hey, ich hasse die herkömmliche art Software zu installieren. ./configure make sudo make install Grausig - das hinterget jeden Paketmanager. Ich brauche gerade ein Gimp Plugin - es nennt sich Exifviewer: http://registry.gimp.org/node/8839 Weiss jemend ob es einen Port gibt dafür? ich fand keinen - vielleicht gibts ja was, was das Ding mit anderen Plug Ins zusammen beinhakltet: /usr/ports/graphics/gimp /usr/ports/graphics/gimp-app /usr/ports/graphics/gimp-data-extras /usr/ports/graphics/gimp-focusblur-plugin /usr/ports/graphics/gimp-gap /usr/ports/graphics/gimp-gmic-plugin /usr/ports/graphics/gimp-help /usr/ports/graphics/gimp-lqr-plugin /usr/ports/graphics/gimp-manual-html /usr/ports/graphics/gimp-manual-pdf /usr/ports/graphics/gimp-resynthesizer /usr/ports/graphics/gimp-save-for-web /usr/ports/graphics/gimpfx-foundry sonst eine Idee, wie ich das ding instwelliere ohne meine Pakete zu zerschießen? Heino PS.: Dazu bin ich mir unsicher, ob das FreeBSD Make das überhaupt so macht, wie das make von vermutlich Linux. I suspect this mail should be directed to de-bsd-questions@de... Ooops - yes. Sorry may fault. Wrong list Heino ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org