[pacman-dev] Patches for srcpac
This seems like the most appropriate mailing list for this. Cheers!
Use the Makefile to help ensure that /etc/srcpac.d is created, rather than relying on the PKGBUILD, since the program requires it. Signed-off-by: Loui Chang <louipc.ist@gmail.com> --- Makefile | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f7cf055 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +all: + +install: all + install -d ${DESTDIR}/etc/srcpac.d + install -d ${DESTDIR}/usr/bin + install -d ${DESTDIR}/usr/share/man/man1 + install -m 755 srcpac ${DESTDIR}/usr/bin + install -m 644 srcpac.1 ${DESTDIR}/usr/share/man/man1 -- 1.6.3.3
On Wed, Jun 24, 2009 at 8:59 AM, Loui Chang<louipc.ist@gmail.com> wrote:
Use the Makefile to help ensure that /etc/srcpac.d is created, rather than relying on the PKGBUILD, since the program requires it.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Who is taking these patches on? I wouldn't mind giving Loui commit access to this if he wants...
--- Makefile | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) create mode 100644 Makefile
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f7cf055 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +all: + +install: all + install -d ${DESTDIR}/etc/srcpac.d + install -d ${DESTDIR}/usr/bin + install -d ${DESTDIR}/usr/share/man/man1 + install -m 755 srcpac ${DESTDIR}/usr/bin + install -m 644 srcpac.1 ${DESTDIR}/usr/share/man/man1 -- 1.6.3.3
_______________________________________________ pacman-dev mailing list pacman-dev@archlinux.org http://www.archlinux.org/mailman/listinfo/pacman-dev
Dan McGee wrote:
On Wed, Jun 24, 2009 at 8:59 AM, Loui Chang<louipc.ist@gmail.com> wrote:
Use the Makefile to help ensure that /etc/srcpac.d is created, rather than relying on the PKGBUILD, since the program requires it.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Who is taking these patches on? I wouldn't mind giving Loui commit access to this if he wants...
That would be fine with me. Otherwise, I will pull the patches in the next few days. Allan
Loui Chang wrote:
Use the Makefile to help ensure that /etc/srcpac.d is created, rather than relying on the PKGBUILD, since the program requires it.
Signed-off-by: Loui Chang <louipc.ist@gmail.com> ---
Pushed. Allan
Signed-off-by: Loui Chang <louipc.ist@gmail.com> --- srcpac | 2 +- srcpac.1 | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/srcpac b/srcpac index 45f1b5d..5288cd9 100755 --- a/srcpac +++ b/srcpac @@ -130,7 +130,7 @@ build_packages() mkdir -p ${builddir} cp ${pkgdir}/* ${builddir} - + # apply configuration apply_config ${pkg} ${builddir} diff --git a/srcpac.1 b/srcpac.1 index 48ffedd..0ee19db 100644 --- a/srcpac.1 +++ b/srcpac.1 @@ -10,19 +10,19 @@ srcpac \- A bash build wrapper for pacman. .SH "OPERATIONS" For additional OPERATIONS not specified below, see pacman manpage. Only those OPERATIONS specified below have been modified. -.TP +.TP \fB\-R, \-\-remove\fR Remove a package from the system. Works the same as \fBpacman\fR. In addition, the 'from\-source' marking will be removed. -.TP +.TP \fB\-Q, \-\-query\fR -Query the package database. Works the same as \fBpacman\fR. Additionally, use of the \fB\-i\fR option tells you whether a package is marked as 'from\-source' or not. +Query the package database. Works the same as \fBpacman\fR. Additionally, use of the \fB\-i\fR option tells you whether a package is marked as 'from\-source' or not. -.TP +.TP \fB\-S, \-\-sync\fR -Synchronize packages. Works the same as \fBpacman\fR. Additional flags may be specified to build something from source (see below). +Synchronize packages. Works the same as \fBpacman\fR. Additional flags may be specified to build something from source (see below). -.TP +.TP \fB\-h, \-\-help\fR Display syntax for the given operation. If no operation was supplied then the general syntax is shown. .SH "OPTIONS" @@ -30,38 +30,38 @@ See pacman manpage. No additional general options beyond what pacman provides. S .SH "SYNC OPTIONS" For additional SYNC options not specified below, see pacman manpage. Only those options specified below have been modified. -.TP +.TP \fB\-b\fR -.br +.br Build specified package from source. This runs \fBmakepkg\fR in /var/srcpac/<repo>/<package>. This may build an older version of the package if the abs tree is not updated. -.TP +.TP \fB\-y\fR -.br +.br This command updates the abs tree and the pacman database. -.TP +.TP \fB\-o\fR -.br +.br Applies the sed command to a PKGBUILD (see CONFIGURATION), then pipes the output to less or the pager set in the PAGER environment variable. This allows you to make sure the changes are applied properly. No actual build occurs when using \fB\-o\fR. .SH "CONFIGURATION" \fBsrcpac\fR lets you specify custom configs based on sed commands applied to PKGBUILDs. The config files are simple sed script files and have to be put in \fI/etc/srcpac.d/\fR. The config files have to be named like the packages they apply to. ie \fI/etc/srcpac.d/less\fR. -.TP +.TP \fBExample\fI /etc/srcpac.d/less\fB:\fR #--prefix=/usr#--prefix=/usr/local# -.TP +.TP The above example config is supplied to the PKGBUILD in a sed command like this: sed \-f CONFIG PKGBUILD -.TP +.TP Since writing these rules can be kind of tricky, it is best to use the \fB\-o\fR flag (see above) until you are sure things look right. .SH "SEE ALSO" .B pacman -is the ArchLinux package manager. +is the Arch Linux package manager. .SH "AUTHORS" Jason Chu <jason@archlinux.org> -- 1.6.3.3
Loui Chang wrote:
This seems like the most appropriate mailing list for this. Cheers!
Close enough... srcpac bugs hang out in the pacman section of the bug tracker. The patches look fine so I will pull them in later. If you are interested in fixing up srcpac: http://bugs.archlinux.org/task/4872 http://bugs.archlinux.org/task/6529 http://bugs.archlinux.org/task/12409 Allan
participants (3)
-
Allan McRae
-
Dan McGee
-
Loui Chang