Skip to content

Commit

Permalink
deb paketi üretimi için değişiklikler yapıldı.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilgün Belma Bugüner committed Jan 22, 2023
1 parent b3f33a8 commit 650979c
Show file tree
Hide file tree
Showing 16 changed files with 79 additions and 170 deletions.
4 changes: 2 additions & 2 deletions BENiOKU
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
manpages-tr-2.0.3 hakkında (300 dosya)
manpages-tr-2.0.x hakkında

Paket içeriği XML belgelerden üretilmiştir.
Paketi oluşturan kaynak belgeler ve betikler
Expand Down Expand Up @@ -38,7 +38,7 @@ https://github.com/TLBP/manpages-tr/issues adresinde "New Issue" düğmesine
tıklayıp yeni bir konu açarak isteğinizi belirtebilirsiniz.


9 Kasım 2022
22 Ocak 2023
Nilgün Belma Bugüner
http://github.com/nilgun

26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# standart kurulum:
# make clean; make; make install
#

MANDIR = /usr/share/man/tr

all:

all: ilc
./prepare.sh;

# hem paket içinde hem de sistemde varolan dosyaları
Expand All @@ -27,12 +32,25 @@ uninstall:
done; cd -;

ilc:
@LANG=C gcc -Wall -o isutf8 isutf8.c; \
str=`./isutf8`; if [ $$str != "yes" ]; then \
@str=`./isutf8`; if [ $$str != "yes" ]; then \
echo "Yerel karakter kodlamasi UTF-8 olmak zorunda"; \
exit 1; \
fi

clean:
rm -dfr ./tr/*
rm -rf tr

debclean: clean
debclean

deb-build: all

deb-install:
cd tr; for i in man?; do \
install -d $(DESTDIR)$(MANDIR)/"$$i"; \
cp -a "$$i"/* $(DESTDIR)$(MANDIR)/"$$i"; \
done; cd -;

deb: ilc
debuild

7 changes: 6 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
manpages-tr (2.0.4) unstable; urgency=medium

* New Release.

-- Nilgün Belma Bugüner (TLBP) <[email protected]> Sat, 21 Jan 2023 18:56:59 +0300

manpages-tr (1.0.5) unstable; urgency=low

* New upstream version.
Expand All @@ -11,4 +17,3 @@ manpages-tr (1.0.2+cvs20040401-1) unstable; urgency=low
* Initial Release.

-- Murat Demirten <[email protected]> Thu, 1 Apr 2004 01:04:50 +0100

1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

14 changes: 9 additions & 5 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
Source: manpages-tr
Section: doc
Priority: optional
Maintainer: Murat Demirten <[email protected]>
Build-Depends: debhelper (>= 5.0), zlib1g-dev, libxslt1.1, libxml2
Standards-Version: 3.7.3
Maintainer: Nilgün Belma Bugüner (TLBP) <[email protected]>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.5.1
Homepage: http://tlbp.org.tr/man/
Vcs-Git: https://github.com/TLBP/manpages-tr.git
Vcs-Browser: https://github.com/TLBP/manpages-tr
Rules-Requires-Root: no

Package: manpages-tr
Architecture: all
Suggests: man-browser, manpages
Replaces: dpkg (<< 1.13.2)
Depends: ${misc:Depends}
Description: Turkish version of the manual pages
This package contains the Linux manual pages translated into Turkish.
The following sections are included:
Expand All @@ -22,3 +25,4 @@ Description: Turkish version of the manual pages
* 7 = Conventions and standards, macro packages, etc.
(e.g. nroff, ascii).
* 8 = System administration commands.

8 changes: 4 additions & 4 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
This package was debianized by Murat Demirten <murat@debian.org> on
Fri, 18 Apr 2008 10:37:04 +0300.
This package was debianized by Nilgün Belma Bugüner <nilgun@tlbp.org.tr> on
Sat, 21 Jan 2023 18:56:59 +0300

It was downloaded from
https://github.com/TLBP/manpages-tr
http://sourceforge.net/project/showfiles.php?group_id=61526

Upstream Author: Nilgün Belma Bugüner <[email protected]>

Copyright © 2003-2022 Turkish Linux Documentation WG (belgeler.org.tr)
Copyright © 2003-2023 Turkish Linux Documentation WG (belgeler.org.tr)

License:
Paket içeriğindeki dosyaların ingilizce sürümlerindeki lisans ve telif hakkı
Expand Down
3 changes: 0 additions & 3 deletions debian/docs

This file was deleted.

37 changes: 15 additions & 22 deletions debian/manpages-tr.prune
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# This file contains all German manpages provided natively by their
# This file contains all Turkish manpages provided natively by their
# respective packages. To avoid duplicates, we prune them from our bundle.
# The list is obtained from a current Contents file via
#
# cp manpages-tr.prune.in manpages-tr.prune
# zgrep -vhE '[^,]doc/manpages-tr?$' Contents-*.gz | grep /man/tr/ | while read file rest; do echo "${file%.gz}"; done | sort | uniq >> manpages-tr.prune
#
# Note: This list may include files that are not contained in the manpages-tr
# distribution at all.
Expand All @@ -14,21 +10,18 @@
#
# [DUPLICATES]
# Lists all Turkish man pages contained in other packages.
usr/share/man/tr/man1/apropos.1.gz
usr/share/man/tr/man1/chage.1.gz
usr/share/man/tr/man1/chfn.1.gz
usr/share/man/tr/man1/login.1.gz
usr/share/man/tr/man1/man.1.gz
usr/share/man/tr/man1/passwd.1.gz
usr/share/man/tr/man8/groupadd.8.gz
usr/share/man/tr/man8/groupdel.8.gz
usr/share/man/tr/man8/groupmod.8.gz
usr/share/man/tr/man8/useradd.8.gz
usr/share/man/tr/man8/userdel.8.gz
usr/share/man/tr/man8/usermod.8.gz
#
# <BYHAND>
# Not yet updated in Contents file.
# <AUTO-GENERATED>
usr/share/man/tr/man1/chage.1
usr/share/man/tr/man1/chfn.1
usr/share/man/tr/man1/login.1
usr/share/man/tr/man1/passwd.1
usr/share/man/tr/man1/su.1
usr/share/man/tr/man1/wipe.1
usr/share/man/tr/man5/passwd.5
usr/share/man/tr/man5/shadow.5
usr/share/man/tr/man8/groupadd.8
usr/share/man/tr/man8/groupdel.8
usr/share/man/tr/man8/groupmod.8
usr/share/man/tr/man8/synaptic.8
usr/share/man/tr/man8/useradd.8
usr/share/man/tr/man8/userdel.8
usr/share/man/tr/man8/usermod.8
#
19 changes: 0 additions & 19 deletions debian/manpages-tr.prune.in

This file was deleted.

89 changes: 16 additions & 73 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,96 +1,39 @@
#! /usr/bin/make -f
# Stolen from the manpages Debian package and heavily hacked to accomodate
# manpages-tr's needs by Daniel Kobras <[email protected]>.
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

#export DH_VERBOSE=1

MIRRORURL:=http://ftp.de.debian.org/debian
CONTENTS_ARCHLIST:=amd64 i386
CONTENTS=$(foreach arch,$(CONTENTS_ARCHLIST),/tmp/manpages-tr.build/Contents-$(arch).gz)

HTTP_GET=$(shell which curl)
ifeq (,$(HTTP_GET))
HTTP_GET=$(shell which wget)
endif
ifeq (,$(HTTP_GET))
HTTP_GET=$(shell which GET)
endif

#
# Convenience rules. Never used in an automated build. Call by hand before
# building a new release.
#

/tmp/manpages-tr.build/Contents-%:
ifeq (,$(HTTP_GET))
@echo "Cannot retrieve Contents files without curl, wget, or GET"; \
exit 1
else
@echo "Retrieving up-to-date $(CONTENTS)"
test -d /tmp/manpages-tr.build || mkdir /tmp/manpages-tr.build
cd /tmp/manpages-tr.build; \
$(HTTP_GET) "$(MIRRORURL)/dists/unstable/`basename $@`"
endif

debian/manpages-tr.prune: debian/manpages-tr.prune.in $(CONTENTS)
cp debian/manpages-tr.prune.in debian/manpages-tr.prune
zgrep -vhE '[^,]doc/manpages-tr?$$' \
/tmp/manpages-tr.build/Contents-*.gz | \
grep -E '/man/tr(\.[^/]+)?/' | while read file rest; do \
echo "$${file%.gz}"; \
done | sort -u >> debian/manpages-tr.prune

update-prune: debian/manpages-tr.prune

#
# Standard rules to follow
#

build:
# Builds the binary package.
# empty
build:
#empty

clean:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
-rm -rf *~ *.orig "#*" debian/manpages-tr debian/*~ debian/files* source/xml2man
-rm -rf tr/*
rm -rf *stamp debian/files debian/manpages-tr
rm -rf debian/manpages-tr.substvars debian/.debhelper
rm -rf tr/*
dh_clean

binary-arch: build

binary-indep: build
$(MAKE) deb-build
dh_testdir
dh_testroot
dh_installdirs
$(MAKE) deb-build
# $(MAKE) prefix=`pwd`/debian/manpages-tr/usr/share install
# Better use dh_installman, which has the nice feature of turning
# all the .so-links to proper symlinks.
# dh_installman `find tr/man? -maxdepth 1 -type f`
dh_installdirs
$(MAKE) deb-install DESTDIR=$(CURDIR)/debian/manpages-tr
# Uh-uh. Our man pages do not contain a language code, so dh_installman
# treats them as English. Move to proper dir now!
# mv debian/manpages-tr/usr/share/man debian/manpages-tr/usr/share/tr
dh_installdirs -A /usr/share/man
# mv debian/manpages-tr/usr/share/tr debian/manpages-tr/usr/share/man/
grep -v '^#' debian/manpages-tr.prune | while read exists crap; do \
grep -v '^#' debian/manpages-tr.prune | while read exists crap; do \
exists=`echo "$$exists" | \
sed -e 's,usr/share/man/tr\.[^/]\+,usr/share/man/tr,'`;\
test -f `pwd`/debian/manpages-tr/"$$exists" || \
test -L `pwd`/debian/manpages-tr/"$$exists" && \
rm -f `pwd`/debian/manpages-tr/"$$exists" || \
true; \
rm -f `pwd`/debian/manpages-tr/"$$exists" || true; \
done
dh_movefiles --sourcedir=debian/manpages-tr
while read dir; do \
test -d debian/manpages-tr/$$dir && \
rmdir debian/manpages-tr/$$dir || \
true; \
done < debian/manpages-tr.files
dh_installdocs
dh_installchangelogs
dh_install --sourcedir=debian/manpages-tr
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_link
Expand Down
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
2 changes: 2 additions & 0 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
compression = "bzip2"
compression-level = 9
Binary file modified isutf8
Binary file not shown.
35 changes: 0 additions & 35 deletions isutf8.c

This file was deleted.

3 changes: 2 additions & 1 deletion prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ src="source"
dest="tr"
mandirs=(1 2 3 4 5 6 7 8)

rm -dfr ./$dest/*
rm -dfr ./$dest
mkdir $dest

for i in ${mandirs[@]};
do
Expand Down
Empty file removed tr/empty
Empty file.

0 comments on commit 650979c

Please sign in to comment.